Skip to content

Commit e37a934

Browse files
authored
Merge pull request #15 from makermelissa/master
Add reset/busy so example works with breakout
2 parents 945591b + 59825f2 commit e37a934

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

examples/il91874_simpletest.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,23 @@
2323
spi = board.SPI()
2424
epd_cs = board.D10
2525
epd_dc = board.D9
26+
epd_reset = board.D5
27+
epd_busy = board.D6
2628

2729
# Create the displayio connection to the display pins
2830
display_bus = displayio.FourWire(
29-
spi, command=epd_dc, chip_select=epd_cs, baudrate=1000000
31+
spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
3032
)
3133
time.sleep(1) # Wait a bit
3234

3335
# Create the display object - the third color is red (0xff0000)
3436
display = adafruit_il91874.IL91874(
35-
display_bus, width=264, height=176, highlight_color=0xFF0000, rotation=90
37+
display_bus,
38+
width=264,
39+
height=176,
40+
busy_pin=epd_busy,
41+
highlight_color=0xFF0000,
42+
rotation=90,
3643
)
3744

3845
# Create a display group for our screen objects

0 commit comments

Comments
 (0)