Skip to content

Commit 70b8492

Browse files
author
Melissa LeBlanc-Williams
committed
Moved width and height to example
1 parent a002f17 commit 70b8492

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Usage Example
4141
displayio.release_displays()
4242
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
4343
44-
display = adafruit_ili9341.ILI9341(display_bus)
44+
display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
4545
4646
# Make the display context
4747
splash = displayio.Group(max_size=10)

adafruit_ili9341.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
class ILI9341(displayio.Display):
8686
"""ILI9341 display driver"""
8787
def __init__(self, bus, **kwargs):
88-
super().__init__(bus, _INIT_SEQUENCE, width=320, height=240, **kwargs)
88+
super().__init__(bus, _INIT_SEQUENCE, **kwargs)

examples/ili9341_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
displayio.release_displays()
1515
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
1616

17-
display = adafruit_ili9341.ILI9341(display_bus)
17+
display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
1818

1919
# Make the display context
2020
splash = displayio.Group(max_size=10)

0 commit comments

Comments
 (0)