Skip to content
/ FT5206 Public

Library for capacitive TouchScreen drived by FT5206xx chip

Notifications You must be signed in to change notification settings

sumotoy/FT5206

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FT5206

Library for capacitive TouchScreen drived by FT5206xx chip used in some eastrising 7" and 5" display and maybe by Adafruit (not sure)
Originally created by Eastrising, modded by Helge Langehaug with the name of FT5x06 and finally recoded by myself.
The FT5x06 library has several errors and I cannot really get reliable data for the 5 touch concurrent positions so I have recoded the all thing.
Now I can get the correct data and even example it's much more correct, not more garbage due incorrect coordinates, etc.
In addition I've added a gesture decoder that should intercep various gestures but strangely I can get only the zoom in and zoom out with my FT chip, maybe I have to understand how to change it's firmware... dunno... The library it's now protected for possible 2 or more instances (before NOT!) and works in I2C at 400Khz.
The FT chip it's really a controller by itself, it has his CPU and it does all the calculations so at the end the driver it's really simple job
I have mainly recoded to work in tandem with my https://github.com/sumotoy/RA8875 library so I added some new features:

setTouchLimit can dinamically restrict the touches on screen from 1 to 5 so in your code if you want just one touch you can use setTouchLimit(1);

getGesture it decodes gestures issued with 2 fingers (so if you use setTouchLimit(1) it will always return 0!).
Decoded gestures are:

  • [0]: not recognized
  • [1]: move up
  • [2]: move left
  • [3]: move down
  • [4]: move right
  • [5]: zoom in
  • [6]: zoom out

I do not understand why my chip recognize only 5 and 6 but try it, maybe you have a better firmware than mine in your FT chip!

getTSflag return if you are phisically touching the touch screen and when you leaved the finger from the touch screen.
See the encluded example for reference!

Connections:

..to continue...

About

Library for capacitive TouchScreen drived by FT5206xx chip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages