LCD 160CR touch callback
Posted: Wed Feb 28, 2018 2:09 pm
Hi,
I've been coming back to a project (to drive my IKEA BEKANT desk automatically) and stumbled upon an issue that I had a while back. Currently I'm reading the touch coordinates of the display by running a `while True` loop and checking the last touched coordinates. What I'd like more is registering a ISR[1] and just call a method from my custom display driver class when the display has actually been touched.
If I recall correctly that wasn't possible half a year ago, due to missing implementation in the driver[2], but I might have been overlooking something.
Has anyone done this before?
For convenience here are the relevant ressources:
* API Doc: http://docs.micropython.org/en/latest/p ... 160cr.html
* [1] ISR tutorial: http://docs.micropython.org/en/latest/p ... rules.html
* [2] Source: https://github.com/micropython/micropyt ... cd160cr.py
Thanks
I've been coming back to a project (to drive my IKEA BEKANT desk automatically) and stumbled upon an issue that I had a while back. Currently I'm reading the touch coordinates of the display by running a `while True` loop and checking the last touched coordinates. What I'd like more is registering a ISR[1] and just call a method from my custom display driver class when the display has actually been touched.
If I recall correctly that wasn't possible half a year ago, due to missing implementation in the driver[2], but I might have been overlooking something.
Has anyone done this before?
For convenience here are the relevant ressources:
* API Doc: http://docs.micropython.org/en/latest/p ... 160cr.html
* [1] ISR tutorial: http://docs.micropython.org/en/latest/p ... rules.html
* [2] Source: https://github.com/micropython/micropyt ... cd160cr.py
Thanks