display module¶
-
class
display.
Display
(spi_port, cs_pin)[source]¶ Wrap the display Stores an internal character map
Parameters: - spi_port – SPI port to use
- cs_pin – CS pin to use
-
characters
= {' ': bytearray(b'\x00\x00\x00'), 'D': bytearray(b'\x00\x18\x18'), 'P': bytearray(b'<~z~f$'), 'H': bytearray(b'w\xe7\xc0\xc0\xe7w'), 'S': bytearray(b'\xe7w00w\xe7'), '1': bytearray(b'\x00|\x00'), '0': bytearray(b'|D|'), '3': bytearray(b'TT|'), '2': bytearray(b'tT\\'), '5': bytearray(b'\\Tt'), '4': bytearray(b'\x1c\x10|'), '7': bytearray(b'\x04\x04|'), '6': bytearray(b'|Tt'), '9': bytearray(b'\\T|'), '8': bytearray(b'|T|'), ':': bytearray(b'('), 'W': bytearray(b'\xc9\xd9\x19s\xe3\x07>\xfc')}¶