From 3a1b91b2850afab30af2647741a9ab4340191ba9 Mon Sep 17 00:00:00 2001 From: Fexiven <48439988+Fexiven@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:27:54 +0100 Subject: [PATCH] Add support for M5Stack Core2 and CoreS3 Both devices use the FT6336U chip. --- adafruit_focaltouch.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adafruit_focaltouch.py b/adafruit_focaltouch.py index 9f12ece..e9ce03d 100755 --- a/adafruit_focaltouch.py +++ b/adafruit_focaltouch.py @@ -7,7 +7,7 @@ ==================================================== CircuitPython driver for common low-cost FocalTech capacitive touch chips. -Currently supports FT6206 & FT6236. +Currently supports FT6206, FT6236 & FT6336. * Author(s): ladyada @@ -22,6 +22,8 @@ * Adafruit `2.8" TFT Touch Shield for Arduino w/Capacitive Touch `_ (Product ID: 1947) +* M5Stack Core2 and CoreS3 + **Software and Dependencies:** * Adafruit CircuitPython firmware for the ESP8622 and M0-based boards: @@ -88,7 +90,7 @@ def __init__(self, i2c, address=_FT_DEFAULT_I2C_ADDR, debug=False, irq_pin=None) ) ) - if vend_id not in (0x11, 0x42): + if vend_id not in (0x11, 0x42, 0x01): raise RuntimeError("Did not find FT chip") if chip_id == 0x06: