Posts

Showing posts from May, 2024

CircuitPython Exercise: Touch buttons on ILI9341 SPI LCD with FT6336 Cap. Touch

Image
My former post show ESP32-S3/CircuitPython exercises for Capacitive Touch Screen, to display on 3.2" 320x240 IPS LCD (ILI9341 SPI) and read capacitive touch (FT6336) . This post I list further exercises to implement a useful Touch Button on the Capacitive Touch Screen, using  Adafruit Display_Button Library . For the connection, read the former post . Remark for using irq_pin in Adafruit_FocalTouch (CircuitPython driver for common low-cost FocalTech capacitive touch chips. Currently supports FT6206 & FT6236): In case you create Adafruit_FocalTouch object using a Bus I2C port and using an interrupt pin (IRQ) like below: ft = adafruit_focaltouch.Adafruit_FocalTouch(i2c, debug=False, irq_pin=irq) The interrupt pin (irq_pin) is used to prevent read errors from the FocalTouch chip. In my test with irq_pin=touch_irq, reading ft.touched will not return if not touched; such that the program will be blocked untill touched. As sho