Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions adafruit_featherwing/tft_featherwing_24.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,18 @@
__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing.git"


import adafruit_ili9341

# pylint: disable-msg=too-few-public-methods
from adafruit_featherwing.tft_featherwing import TFTFeatherWing


# pylint: disable-msg=too-few-public-methods, too-many-arguments
class TFTFeatherWing24(TFTFeatherWing):
"""Class representing an `TFT FeatherWing 2.4
<https://www.adafruit.com/product/3315>`_.

"""

def __init__(self, spi=None, cs=None, dc=None):
super().__init__(spi, cs, dc)
def __init__(self, spi=None, cs=None, dc=None, ts_cs=None, sd_cs=None):
super().__init__(spi, cs, dc, ts_cs, sd_cs)
self.display = adafruit_ili9341.ILI9341(
self._display_bus, width=320, height=240
)
8 changes: 3 additions & 5 deletions adafruit_featherwing/tft_featherwing_35.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing.git"

from adafruit_hx8357 import HX8357

# pylint: disable-msg=too-few-public-methods
from adafruit_featherwing.tft_featherwing import TFTFeatherWing


# pylint: disable-msg=too-few-public-methods, too-many-arguments
class TFTFeatherWing35(TFTFeatherWing):
"""Class representing an `TFT FeatherWing 3.5
<https://www.adafruit.com/product/3651>`_.

"""

def __init__(self, spi=None, cs=None, dc=None):
super().__init__(spi, cs, dc)
def __init__(self, spi=None, cs=None, dc=None, ts_cs=None, sd_cs=None):
super().__init__(spi, cs, dc, ts_cs, sd_cs)
self.display = HX8357(self._display_bus, width=480, height=320)