Skip to content

Commit 310708d

Browse files
authored
Merge pull request #69 from jfurcean/expose_cs_pins
expose `ts_cs` and `sd_cs` pins
2 parents c9e46e5 + d7d2321 commit 310708d

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

adafruit_featherwing/tft_featherwing_24.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,18 @@
2020
__version__ = "0.0.0-auto.0"
2121
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing.git"
2222

23-
2423
import adafruit_ili9341
25-
26-
# pylint: disable-msg=too-few-public-methods
2724
from adafruit_featherwing.tft_featherwing import TFTFeatherWing
2825

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

36-
def __init__(self, spi=None, cs=None, dc=None):
37-
super().__init__(spi, cs, dc)
33+
def __init__(self, spi=None, cs=None, dc=None, ts_cs=None, sd_cs=None):
34+
super().__init__(spi, cs, dc, ts_cs, sd_cs)
3835
self.display = adafruit_ili9341.ILI9341(
3936
self._display_bus, width=320, height=240
4037
)

adafruit_featherwing/tft_featherwing_35.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,15 @@
2121
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing.git"
2222

2323
from adafruit_hx8357 import HX8357
24-
25-
# pylint: disable-msg=too-few-public-methods
2624
from adafruit_featherwing.tft_featherwing import TFTFeatherWing
2725

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

35-
def __init__(self, spi=None, cs=None, dc=None):
36-
super().__init__(spi, cs, dc)
33+
def __init__(self, spi=None, cs=None, dc=None, ts_cs=None, sd_cs=None):
34+
super().__init__(spi, cs, dc, ts_cs, sd_cs)
3735
self.display = HX8357(self._display_bus, width=480, height=320)

0 commit comments

Comments
 (0)