8989_SSD1675B_NOP = const (0xFF )
9090_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
9191
92-
9392class Adafruit_SSD1675B (Adafruit_EPD ):
9493 """driver class for Adafruit SSD1675B ePaper display breakouts"""
9594 # pylint: disable=too-many-arguments
@@ -115,7 +114,7 @@ def __init__(self, width, height, spi, *, cs_pin, dc_pin, sramcs_pin, rst_pin, b
115114 self ._framebuf2 = adafruit_framebuf .FrameBuffer (self ._buffer2 , width , height ,
116115 buf_format = adafruit_framebuf .MHMSB )
117116 self .set_black_buffer (0 , True )
118- self .set_color_buffer (1 , True )
117+ self .set_color_buffer (0 , True )
119118 # pylint: enable=too-many-arguments
120119
121120 def begin (self , reset = True ):
@@ -159,7 +158,7 @@ def power_up(self):
159158 self .command (_SSD1675B_SET_RAMYPOS , bytearray ([0x0 , 0x0 , self ._height - 1 , (self ._height - 1 ) >> 8 ]))
160159
161160 # Border color
162- self .command (_SSD1675B_WRITE_BORDER , bytearray ([0x01 ]))
161+ self .command (_SSD1675B_WRITE_BORDER , bytearray ([0x03 ]))
163162
164163 # Vcom Voltage
165164 self .command (_SSD1675B_WRITE_VCOM_REG , bytearray ([0x50 ]))
@@ -191,7 +190,7 @@ def power_down(self):
191190
192191 def update (self ):
193192 """Update the display from internal memory"""
194- self .command (_SSD1675B_DISP_CTRL2 , bytearray ([0xFF ]))
193+ self .command (_SSD1675B_DISP_CTRL2 , bytearray ([0xC7 ]))
195194 self .command (_SSD1675B_MASTER_ACTIVATE )
196195 self .busy_wait ()
197196 if not self ._busy :
0 commit comments