Skip to content

Commit 9719109

Browse files
committed
Swap to board.SPI() on a Feather
1 parent e912239 commit 9719109

File tree

5 files changed

+20
-33
lines changed

5 files changed

+20
-33
lines changed

README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ Usage Example
6767
6868
import time
6969
import board
70-
import busio
7170
import displayio
7271
import adafruit_il0373
7372

examples/il0373_1.54_color.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@
77

88
import time
99
import board
10-
import busio
1110
import displayio
1211
import adafruit_il0373
1312

1413
displayio.release_displays()
1514

16-
# This pinout works on a Metro and may need to be altered for other boards.
17-
18-
# For breadboarding
19-
spi = busio.SPI(board.SCL, board.SDA)
15+
# This pinout works on a Feather M4 and may need to be altered for other boards.
16+
spi = board.SPI() # Uses SCK and MOSI
2017
epd_cs = board.D9
21-
epd_dc = board.D8
22-
epd_reset = board.D7
18+
epd_dc = board.D10
19+
epd_reset = board.D5
2320
epd_busy = board.D6
2421

2522
display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset,

examples/il0373_2.13_color.py

100644100755
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@
77

88
import time
99
import board
10-
import busio
1110
import displayio
1211
import adafruit_il0373
1312

1413
displayio.release_displays()
1514

16-
# This pinout works on a Metro and may need to be altered for other boards.
17-
18-
# For breadboarding
19-
spi = busio.SPI(board.SCL, board.SDA)
15+
# This pinout works on a Feather M4 and may need to be altered for other boards.
16+
spi = board.SPI() # Uses SCK and MOSI
2017
epd_cs = board.D9
21-
epd_dc = board.D8
22-
epd_reset = board.D7
18+
epd_dc = board.D10
19+
epd_reset = board.D5
2320
epd_busy = board.D6
2421

2522
display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset,

examples/il0373_flexible_2.13_black_white.py renamed to examples/il0373_flexible_2.13_monochrome.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
"""Simple test script for 2.13" 212x104 black and white display.
1+
"""Simple test script for 2.13" 212x104 monochrome display.
22
33
Supported products:
4-
* Adafruit Flexible 2.13" Black and White
4+
* Adafruit Flexible 2.13" Monochrome
55
* https://www.adafruit.com/product/4243
66
"""
77

88
import time
99
import board
10-
import busio
1110
import displayio
1211
import adafruit_il0373
1312

1413
displayio.release_displays()
1514

16-
# This pinout works on a Metro and may need to be altered for other boards.
17-
18-
# For breadboarding
19-
spi = busio.SPI(board.SCL, board.SDA)
15+
# This pinout works on a Feather M4 and may need to be altered for other boards.
16+
spi = board.SPI() # Uses SCK and MOSI
2017
epd_cs = board.D9
21-
epd_dc = board.D8
22-
epd_reset = board.D7
18+
epd_dc = board.D10
19+
epd_reset = board.D5
2320
epd_busy = board.D6
2421

2522
display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset,

examples/il0373_flexible_2.9_black_white.py renamed to examples/il0373_flexible_2.9_monochrome.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
"""Simple test script for 2.9" 296x128 black and white display.
1+
"""Simple test script for 2.9" 296x128 monochrome display.
22
33
Supported products:
4-
* Adafruit Flexible 2.9" Black and White
4+
* Adafruit Flexible 2.9" Monochrome
55
* https://www.adafruit.com/product/4262
66
"""
77

88
import time
99
import board
10-
import busio
1110
import displayio
1211
import adafruit_il0373
1312

1413
displayio.release_displays()
1514

16-
# This pinout works on a Metro and may need to be altered for other boards.
17-
18-
# For breadboarding
19-
spi = busio.SPI(board.SCL, board.SDA)
15+
# This pinout works on a Feather M4 and may need to be altered for other boards.
16+
spi = board.SPI() # Uses SCK and MOSI
2017
epd_cs = board.D9
21-
epd_dc = board.D8
22-
epd_reset = board.D7
18+
epd_dc = board.D10
19+
epd_reset = board.D5
2320
epd_busy = board.D6
2421

2522
display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset,

0 commit comments

Comments
 (0)