Skip to content

Commit 08486d7

Browse files
authored
Merge pull request #6 from makermelissa/master
Added kwargs for additional parameters
2 parents 8d28c28 + 70b8492 commit 08486d7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@
8484
# pylint: disable=too-few-public-methods
8585
class ILI9341(displayio.Display):
8686
"""ILI9341 display driver"""
87-
def __init__(self, bus):
88-
super().__init__(bus, _INIT_SEQUENCE, width=320, height=240)
87+
def __init__(self, bus, **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)