encode_digit ( digit )Ĭonvert a string to a list of segments. write ( segments, pos = 0 )Ĭonvert a single hex digit (0x00-0x0f) to a segment. Write one or more segments at a given offset. The 8th bit (MSB) is for the colon and only on the 2nd segment. One byte (7 lower bits) for each segment. They are called 7-segment displays as there are 7 LEDs for each digit (segment). temperature ( 24 )įor more detailed examples, see demo.py Seven Segment Font number ( - 123 ) # show temperature '24*C' tm. show ( 'help' ) # display "dEAd", "bEEF" tm. $ pip3 install raspberrypi-tm1637īasic usage import tm1637 tm = tm1637. A Python 3 port from MicroPython library for the quad 7-segment LED display modules based on the TM1637 LED driver, implemented on Raspberry Pi.įor example, the Grove - 4 Digit Display module
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |