diff --git a/adafruit_featherwing/tft_featherwing_24.py b/adafruit_featherwing/tft_featherwing_24.py index 51da67c..8d56163 100644 --- a/adafruit_featherwing/tft_featherwing_24.py +++ b/adafruit_featherwing/tft_featherwing_24.py @@ -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 `_. """ - 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 ) diff --git a/adafruit_featherwing/tft_featherwing_35.py b/adafruit_featherwing/tft_featherwing_35.py index a3b0a2c..3546951 100644 --- a/adafruit_featherwing/tft_featherwing_35.py +++ b/adafruit_featherwing/tft_featherwing_35.py @@ -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 `_. """ - 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)