|
37 | 37 |
|
38 | 38 | **Software and Dependencies:**
|
39 | 39 |
|
40 |
| -* Adafruit CircuitPython firmware for the supported boards: |
| 40 | +* Adafruit CircuitPython firmware (version 5+) for the supported boards: |
41 | 41 | https://github.com/adafruit/circuitpython/releases
|
42 | 42 |
|
43 |
| -.. todo:: Uncomment or remove the Bus Device and/or the Register library dependencies based on the library's use of either. |
44 |
| -
|
45 | 43 | # * Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
|
46 | 44 | # * Adafruit's Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
|
47 | 45 | """
|
|
66 | 64 | b"\x50\x01\x87" # CDI setting
|
67 | 65 |
|
68 | 66 | # Look Up Tables
|
69 |
| - b"\x20\x2c\x00\x00\x00\x1a\x1a\x00\x00\x01\x00\x0a\x0a\x00\x00\x08\x00\x0e\x01\x0e\x01\x10\x00\x0a\x0a\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\x0a\x00\x23\x00\x00\x00\x01" # LUT1 |
70 |
| - b"\x21\x2a\x90\x1a\x1a\x00\x00\x01\x40\x0a\x0a\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x80\x0a\x0a\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\x0a\x00\x23\x00\x00\x00\x01" # LUTWW |
71 |
| - b"\x22\x2a\xa0\x1a\x1a\x00\x00\x01\x00\x0a\x0a\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x90\x0a\x0a\x00\x00\x08\xb0\x04\x10\x00\x00\x05\xb0\x03\x0e\x00\x00\x0a\xc0\x23\x00\x00\x00\x01" # LUTBW |
72 |
| - b"\x23\x2a\x90\x1a\x1a\x00\x00\x01\x40\x0a\x0a\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x80\x0a\x0a\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\x0a\x00\x23\x00\x00\x00\x01" # LUTWB |
73 |
| - b"\x24\x2a\x90\x1a\x1a\x00\x00\x01\x20\x0a\x0a\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x10\x0a\x0a\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\x0a\x00\x23\x00\x00\x00\x01" # LUTBB |
| 67 | + # LUT1 |
| 68 | + b"\x20\x2c\x00\x00\x00\x1a\x1a\x00\x00\x01\x00\x0a\x0a\x00\x00\x08\x00\x0e\x01\x0e\x01\x10\x00" |
| 69 | + b"\x0a\x0a\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\x0a\x00\x23\x00\x00\x00\x01" |
| 70 | + # LUTWW |
| 71 | + b"\x21\x2a\x90\x1a\x1a\x00\x00\x01\x40\x0a\x0a\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x80\x0a\x0a" |
| 72 | + b"\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\x0a\x00\x23\x00\x00\x00\x01" |
| 73 | + # LUTBW |
| 74 | + b"\x22\x2a\xa0\x1a\x1a\x00\x00\x01\x00\x0a\x0a\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x90\x0a\x0a" |
| 75 | + b"\x00\x00\x08\xb0\x04\x10\x00\x00\x05\xb0\x03\x0e\x00\x00\x0a\xc0\x23\x00\x00\x00\x01" |
| 76 | + # LUTWB |
| 77 | + b"\x23\x2a\x90\x1a\x1a\x00\x00\x01\x40\x0a\x0a\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x80\x0a\x0a" |
| 78 | + b"\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\x0a\x00\x23\x00\x00\x00\x01" |
| 79 | + # LUTBB |
| 80 | + b"\x24\x2a\x90\x1a\x1a\x00\x00\x01\x20\x0a\x0a\x00\x00\x08\x84\x0e\x01\x0e\x01\x10\x10\x0a\x0a" |
| 81 | + b"\x00\x00\x08\x00\x04\x10\x00\x00\x05\x00\x03\x0e\x00\x00\x0a\x00\x23\x00\x00\x00\x01" |
74 | 82 |
|
75 | 83 | b"\x61\x04\x00\x00\x00\x00" # Resolution
|
76 | 84 | b"\x16\x80\x00" # PDRF
|
@@ -100,5 +108,6 @@ def __init__(self, bus, **kwargs):
|
100 | 108 | super().__init__(bus, start_sequence, _STOP_SEQUENCE, **kwargs,
|
101 | 109 | ram_width=320, ram_height=300,
|
102 | 110 | busy_state=False,
|
103 |
| - write_black_ram_command=0x10, black_bits_inverted=True, write_color_ram_command=0x13, |
| 111 | + write_black_ram_command=0x10, black_bits_inverted=True, |
| 112 | + write_color_ram_command=0x13, |
104 | 113 | refresh_display_command=0x12, always_toggle_chip_select=True)
|
0 commit comments