toitlang / toit

Program your microcontrollers in a fast and robust high-level language.
https://toitlang.org/
GNU Lesser General Public License v2.1
1.2k stars 79 forks source link

Driver for touch screen on M5Stack Core2 #25

Closed kasperl closed 2 years ago

kasperl commented 2 years ago

Porting existing drivers to Toit is a great place to start contributing to the Toit community. The M5Stack Core2 is a fantastic device. It comes with MIT licensed support for the touch support for the screen, but that support isn't yet available for Toit users:

https://github.com/m5stack/M5Core2/blob/master/src/M5Touch.h

It appears to be based on the FocalTech FT6336 chip and it uses I2C to communicate. It would be great to have a Toit package that makes the functionality available to all Toit users.

Here is the source code of another driver package that is useful on the M5Core and here is brief explanation on how to start writing an I2C driver in Toit.

Happy hacking!

kasperl commented 2 years ago

Mentioned your work on the MPU6886 here, @imliubo. Thanks again!

imliubo commented 2 years ago

Thanks,has anyone start for touch support? Maybe I can try it later, but I'm still stuck in other work...

kasperl commented 2 years ago

Not to my knowledge!

imliubo commented 2 years ago

A very simple driver for FT63xx capacitive touch chip. Link

kasperl commented 2 years ago

Fixed by @imliubo here: https://pkg.toit.io/package/github.com%2Fimliubo%2Fft63xx-toit.

Fantastic work!