Hi - sorry for the delay. If you want to make it hang around you can just do setInterval("", 1000) - as long as there is something to execute it'll stay running.
But I'm afraid there's no input event handling - honestly the Linux build is there mainly for testing, so sometimes I use SDL to display the result of doing something on Graphics, but I don't do anything two-way. Normally I just use createArrayBuffer and dump the output to a file with g.asBMP().
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.
Hi - sorry for the delay. If you want to make it hang around you can just do
setInterval("", 1000)
- as long as there is something to execute it'll stay running.But I'm afraid there's no input event handling - honestly the Linux build is there mainly for testing, so sometimes I use SDL to display the result of doing something on Graphics, but I don't do anything two-way. Normally I just use
createArrayBuffer
and dump the output to a file withg.asBMP()
.I guess if you wanted to actually develop Bangle.js apps you could build for the https://github.com/espruino/Espruino/blob/master/boards/BANGLEJS2_LINUX.py board - but that doesn't use SDL - adding it for IO would be a reasonable undertaking.