NeoStormer/CircuitPython_CST816 ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple CircuitPython library for the CST816 touch screen controller.
I want to be able to plug the chip into a board over I2C, create a CST816 object, check that it is detected, and then read the current touch point, gesture, touch state, and distance in a loop. Please include a small example that shows how to initialize I2C and print those values to the serial console.
Make it easy to install on a CircuitPython device, and keep the code clean and readable. If you need to check the latest CircuitPython or Adafruit library docs online, go ahead. Also add any basic notes someone would need to get it working, like what dependencies are required and how to use it with the examples folder.
Are you gonna build this?
make sure you review the code using coderabbit