Skip to content

Commit f48fcaf

Browse files
committed
changed tft variables to oled
1 parent f6d62ca commit f48fcaf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/displayio_ssd1306_simpletest.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
displayio.release_displays()
1313

1414
spi = board.SPI()
15-
tft_cs = board.D5
16-
tft_dc = board.D6
17-
tft_reset = board.D9
15+
oled_cs = board.D5
16+
oled_dc = board.D6
17+
oled_reset = board.D9
1818

19-
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs,
20-
reset=tft_reset, baudrate=1000000)
19+
display_bus = displayio.FourWire(spi, command=oled_dc, chip_select=oled_cs,
20+
reset=oled_reset, baudrate=1000000)
2121
display = adafruit_displayio_ssd1306.SSD1306(display_bus, width=128, height=64)
2222

2323
# Make the display context

0 commit comments

Comments
 (0)