As far as I remember there are only 4 buttons built-in - but it'd be easy enough to add more.
Just do a text search over all the files for BTN4, and where it says that, copy the relevant lines and rename to BTN5 :)
BTN4
Heureka, I did not know that it can be somewhere in jspin.c. Thank you very much :)
@TomasJ started
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.
As far as I remember there are only 4 buttons built-in - but it'd be easy enough to add more.
Just do a text search over all the files for
BTN4
, and where it says that, copy the relevant lines and rename to BTN5 :)