89
89
_SSD1675B_NOP = const (0xFF )
90
90
_LUT_DATA = b'\xa0 \x90 P\x00 \x00 \x00 \x00 \x00 \x00 \x00 P\x90 \xa0 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \xa0 \x90 P\x00 \x00 \x00 \x00 \x00 \x00 \x00 P\x90 \xa0 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x0f \x0f \x00 \x00 \x00 \x0f \x0f \x00 \x00 \x03 \x0f \x0f \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x15 A\xa8 2P,\x0b ' # pylint: disable=line-too-long
91
91
92
-
93
92
class Adafruit_SSD1675B (Adafruit_EPD ):
94
93
"""driver class for Adafruit SSD1675B ePaper display breakouts"""
95
94
# pylint: disable=too-many-arguments
@@ -115,7 +114,7 @@ def __init__(self, width, height, spi, *, cs_pin, dc_pin, sramcs_pin, rst_pin, b
115
114
self ._framebuf2 = adafruit_framebuf .FrameBuffer (self ._buffer2 , width , height ,
116
115
buf_format = adafruit_framebuf .MHMSB )
117
116
self .set_black_buffer (0 , True )
118
- self .set_color_buffer (1 , True )
117
+ self .set_color_buffer (0 , True )
119
118
# pylint: enable=too-many-arguments
120
119
121
120
def begin (self , reset = True ):
@@ -159,7 +158,7 @@ def power_up(self):
159
158
self .command (_SSD1675B_SET_RAMYPOS , bytearray ([0x0 , 0x0 , self ._height - 1 , (self ._height - 1 ) >> 8 ]))
160
159
161
160
# Border color
162
- self .command (_SSD1675B_WRITE_BORDER , bytearray ([0x01 ]))
161
+ self .command (_SSD1675B_WRITE_BORDER , bytearray ([0x03 ]))
163
162
164
163
# Vcom Voltage
165
164
self .command (_SSD1675B_WRITE_VCOM_REG , bytearray ([0x50 ]))
@@ -191,7 +190,7 @@ def power_down(self):
191
190
192
191
def update (self ):
193
192
"""Update the display from internal memory"""
194
- self .command (_SSD1675B_DISP_CTRL2 , bytearray ([0xFF ]))
193
+ self .command (_SSD1675B_DISP_CTRL2 , bytearray ([0xC7 ]))
195
194
self .command (_SSD1675B_MASTER_ACTIVATE )
196
195
self .busy_wait ()
197
196
if not self ._busy :
0 commit comments