Skip to content

Commit fb19eea

Browse files
committed
fix bitmap example, tested!
1 parent 9c51956 commit fb19eea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/epd_bitmap.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
busy = digitalio.DigitalInOut(board.D6)
1414

1515
# give them all to our driver
16-
display = Adafruit_IL0373(152, 152, rst, dc, busy, srcs, ecs, spi)
16+
display = Adafruit_IL0373(152, 152, spi,
17+
cs_pin=ecs, dc_pin=dc, sramcs_pin=srcs,
18+
rst_pin=rst, busy_pin=busy)
1719

1820
FILENAME = "blinka.bmp"
1921

2022
# clear the buffer
21-
display.clear_buffer()
23+
display.fill(Adafruit_EPD.WHITE)
2224

2325
def read_le(s):
2426
# as of this writting, int.from_bytes does not have LE support, DIY!

0 commit comments

Comments
 (0)