Skip to content

FT6X36-IDF is a library for self-capacitive touch panel controllers produced by FocalTech Systems (FT6236/FT6336) and the L58 touch. This fork goal is to work as a C++ component for ESP-IDF framework

License

Notifications You must be signed in to change notification settings

martinberlin/FT6X36-IDF

 
 

Repository files navigation

FT6X36 (FT6236/FT6336/FT6436L/FT6436)

This is an ESP-IDF component forked from ESP32 Arduino library FT6X36 for self-capacitive touch panel controllers produced by FocalTech Systems.

ATTENTION!

Only basic functionality is currently implemented. Has been tested only on ESP32 using a 2.7" e-ink display (GDEW027W3-T and new model GDEY027T91). This will work only as a compoment in the ESP-IDF framework. If you are looking for an arduino-esp32 version check the original FT6X36 library This was tested and works correctly with ESP-IDF v. 4.2 on 4.4 and latest version 5.

Here I present you the definitive guide to Good-Display I2C touch pin up which usually is a 6 pin FPC cable. I'm saving you the time to search and open 3 different PDF datasheets!

2.7" FT6336

1 GND
2 INT
3 RST (Not used in this component)
4 VDD
5 SCL
6 SDA

4.2" FT6336 400x300

1 GND
2 VDD
3 RST (Not used in this component)
4 INT
5 SDA
6 SCL

1.54" FT5436

1 GND
2 INT
3 RST (Not used in this component)
4 VDD
5 SCL
6 SDA

Check Good-Display touch drawing for 1.54" to be sure.

Annotation

The Adafruit_FT6206_Library was used as a base for the FT6X36 library. Many things were added/improved/rewritten based on a datasheet for the controller.

Fork policy

Please do not Fork this repository to bookmark it. For that use the ★ Star button. Acceptable forks fall in this three categories:

  1. You found a bug and want to suggest a merge request. Then Fork it!
  2. You will contribute adding a new epaper model that does exist.
  3. You will use FT6X36-IDF as a base to create something new. But in that case it would be nice to let us know first or to refer to the original repository from strange-v.

All other users that fork this without falling in this categories and without any kind of advice to us will be blocked and will not be able to interact with the further releases. Forking is not bookmarking!

We don't like having copies of this without any reason. It is just a bad practice, makes things confusing, and makes absolutely no sense. This repository is not going to dissapear or be deleted by any means so you can use it with confidence. Forking this in order to make updates that fit your particular project is alright, as long as you update the readme and state what are the intentions to do so.

References

The reading part of I2C was mostly stealed from LVGL for ESP-IDF but respecting the methods of the original library and done in a different way. Hats off to the great work of this library and FT6X36. A second intention derived from this fork, is to make this library be less processor intensive, getting out the loop and reading only touch per interruption. Only when the INT pin goes from high to low (Falling edge, known as GPIO_INTR_NEGEDGE in ESP-IDF Framework)

Video of the library working on ESP32 with GDEW027W3-T

Video of next step: To integrate this on an epaper component and make it rotation and display aware.

Example implemented on Cale-IDF our IDF component for epapers

Donations accepted

If you like this component and it made your life easier please consider becoming a sponsor where you can donate as little as 2 u$ per month. Just click on: ❤ Sponsor on the top right

♢ For cryptocurrency users is also possible to help this project transferring Ethereum:

0x68cEAB84F33776a7Fac977B2Bdc0D50933344086

We are thankful for the support and contributions so far!

Interesting projects using this library

Send us yours to be featured here. The project needs to be open source in any public repository.

About

FT6X36-IDF is a library for self-capacitive touch panel controllers produced by FocalTech Systems (FT6236/FT6336) and the L58 touch. This fork goal is to work as a C++ component for ESP-IDF framework

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • C++ 98.7%
  • Other 1.3%