Merge pull request #6 from makermelissa/master
Added kwargs for additional parameters
This commit is contained in:
commit
08486d71a3
3 changed files with 4 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ Usage Example
|
|||
displayio.release_displays()
|
||||
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
|
||||
|
||||
display = adafruit_ili9341.ILI9341(display_bus)
|
||||
display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
|
||||
|
||||
# Make the display context
|
||||
splash = displayio.Group(max_size=10)
|
||||
|
|
|
|||
|
|
@ -84,5 +84,5 @@ _INIT_SEQUENCE = (
|
|||
# pylint: disable=too-few-public-methods
|
||||
class ILI9341(displayio.Display):
|
||||
"""ILI9341 display driver"""
|
||||
def __init__(self, bus):
|
||||
super().__init__(bus, _INIT_SEQUENCE, width=320, height=240)
|
||||
def __init__(self, bus, **kwargs):
|
||||
super().__init__(bus, _INIT_SEQUENCE, **kwargs)
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ tft_dc = board.D10
|
|||
displayio.release_displays()
|
||||
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
|
||||
|
||||
display = adafruit_ili9341.ILI9341(display_bus)
|
||||
display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
|
||||
|
||||
# Make the display context
|
||||
splash = displayio.Group(max_size=10)
|
||||
|
|
|
|||
Loading…
Reference in a new issue