pinetime-zephyr icon indicating copy to clipboard operation
pinetime-zephyr copied to clipboard

interrupt on touchscreen cst816s

Open najnesnaj opened this issue 5 years ago • 5 comments

to test the interrupt : samples/sensor/cst816s samples/gui/lvtouch

the gui sample does not handle the interrupt.

Maybe this is linked to the GPIO led activation of the screen. The GPIO becomes unusable for interrupts?

najnesnaj avatar Jan 26 '20 08:01 najnesnaj

i can try to check that on weekend.

nordic-krch avatar Jan 30 '20 18:01 nordic-krch

i tried to compile sample with cst816s but it fails. I don't see DT binding file for it: https://github.com/najnesnaj/pinetime-zephyr/tree/master/dts/bindings/sensor

nordic-krch avatar Jan 30 '20 19:01 nordic-krch

I should work now. For testing the interrupt in the sensor/cts816s sample I used a counter in memory, there are of course easier methods :)

najnesnaj avatar Jan 31 '20 06:01 najnesnaj

I've been trying to make this work for our PineTime Hypnos firmware but it doesn't play well with LittlevGL. @nordic-krch, would you like to give our code try? It compiles without warnings but tapping the screen freezes or crashes the application.

endian-albin avatar Apr 13 '20 18:04 endian-albin

Never mind, I fixed it by switching from CONFIG_CST816S_TRIGGER_OWN_THREAD to CONFIG_CST816S_TRIGGER_GLOBAL_THREAD. I hope this will be helpful to others though...

endian-albin avatar Apr 13 '20 20:04 endian-albin