Thank you for these explanations!
With that and some more reading of the references and tutorial I think I almost have a first application to try and submit for touchscreen calibration!
After reading the tutorial "Bangle.js Software Modification" I am currently searching how to override the function defining the event Bangle.touch, the one that set the button and xy variable that we can read.
up until now from the tutorial I tried adding a app.boot.js to set my own listener, and I guess that work everywhere like I intend to, but I am not sure if it will affect the other app if by example I change the value of x or y in my function, a few test showed that it is not the case. If you have any ideas?
For now the application for gathering the calibration data itself seem to work fine, tomorrow I will probably look how to save them and make a some settings and an icon. But after that I will stuck for some time I guess.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thank you for these explanations!
With that and some more reading of the references and tutorial I think I almost have a first application to try and submit for touchscreen calibration!
After reading the tutorial "Bangle.js Software Modification" I am currently searching how to override the function defining the event Bangle.touch, the one that set the button and xy variable that we can read.
I think it is linked at least partially to this in the firmware:
https://github.com/espruino/Espruino/blob/master/libs/banglejs/jswrap_bangle.c#L347
and https://github.com/espruino/Espruino/blob/master/libs/banglejs/jswrap_bangle.c#L1589
So I am not sure if there is really any control possible before that.
up until now from the tutorial I tried adding a app.boot.js to set my own listener, and I guess that work everywhere like I intend to, but I am not sure if it will affect the other app if by example I change the value of x or y in my function, a few test showed that it is not the case. If you have any ideas?
For now the application for gathering the calibration data itself seem to work fine, tomorrow I will probably look how to save them and make a some settings and an icon. But after that I will stuck for some time I guess.