|
33 | 33 |
|
34 | 34 | **Hardware:** |
35 | 35 |
|
36 | | -.. todo:: Add links to any specific hardware product page(s), or category page(s). Use unordered list & hyperlink rST |
37 | | - inline format: "* `Link Text <url>`_" |
| 36 | +* `Adafruit 2.13" Monochrome ePaper Display Breakout <https://www.adafruit.com/product/4197>`_ |
| 37 | +* `Adafruit 2.13" Black and White FeatherWing <https://www.adafruit.com/product/4195>`_ |
38 | 38 |
|
39 | 39 | **Software and Dependencies:** |
40 | 40 |
|
|
49 | 49 | __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SSD1675.git" |
50 | 50 |
|
51 | 51 | _START_SEQUENCE = ( |
52 | | - b"\x12\x00" # Software reset |
| 52 | + b"\x12\x80\x02" # Software reset, 2ms delay |
53 | 53 | b"\x74\x01\x54" # set analog block control |
54 | 54 | b"\x7e\x01\x3b" # set digital block control |
55 | 55 | b"\x01\x03\xfa\x01\x00" # driver output control |
|
60 | 60 | b"\x04\x03\x41\xa8\x32" # Set source voltage |
61 | 61 | b"\x3a\x01\x30" # Set dummy line period |
62 | 62 | b"\x3b\x01\x0a" # Set gate line width |
63 | | - b"\x32\x46\x80\x60\x40\x00\x00\x00\x00\x10\x60\x20\x00\x00\x00\x00\x80\x60\x40\x00\x00\x00\x00\x10\x60\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x03\x00\x00\x02\x09\x09\x00\x00\x02\x03\x03\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" # LUT |
| 63 | + b"\x32\x46\x80\x60\x40\x00\x00\x00\x00\x10\x60\x20\x00\x00\x00\x00\x80\x60\x40\x00\x00\x00\x00" |
| 64 | + b"\x10\x60\x20\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x03\x00\x00\x02\x09\x09\x00\x00" |
| 65 | + b"\x02\x03\x03\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" |
| 66 | + b"\x00\x00\x00" # LUT |
64 | 67 | ) |
65 | 68 |
|
66 | 69 | _STOP_SEQUENCE = ( |
|
71 | 74 | class SSD1675(displayio.EPaperDisplay): |
72 | 75 | """SSD1675 driver""" |
73 | 76 | def __init__(self, bus, **kwargs): |
74 | | - color_command = None |
75 | | - super().__init__(bus, _START_SEQUENCE, _STOP_SEQUENCE, **kwargs, |
| 77 | + stop_sequence = _STOP_SEQUENCE |
| 78 | + try: |
| 79 | + bus.reset() |
| 80 | + except RuntimeError: |
| 81 | + stop_sequence = b"" |
| 82 | + super().__init__(bus, _START_SEQUENCE, stop_sequence, **kwargs, |
76 | 83 | ram_width=160, ram_height=296, |
77 | 84 | set_column_window_command=0x44, set_row_window_command=0x45, |
78 | 85 | set_current_column_command=0x4e, set_current_row_command=0x4f, |
79 | | - write_black_ram_command=0x24, write_color_ram_command=color_command, |
80 | | - refresh_display_command=0x20) |
| 86 | + write_black_ram_command=0x24, |
| 87 | + refresh_display_command=0x20, refresh_time=2.2) |
0 commit comments