I blink the roman "digits" in sequence. With three LED:s numerals up to 50 (the number 40 and 50 twisted by only using X) can be presented by only using short blinks, and with much fewer blinks than morse code.
I handle the "output" using an interval timer, which means that I output only the last "message" encountered. It repeats every three seconds for a minute. After a button click it is reactivated for another minute.
I have encapsulated my simple UI (with code for both input and output) in a handy class, and used it in quite a few hacks.
If someone is interested I can probably encapusate it in a convenient library.
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.
I blink the roman "digits" in sequence. With three LED:s numerals up to 50 (the number 40 and 50 twisted by only using X) can be presented by only using short blinks, and with much fewer blinks than morse code.
I handle the "output" using an interval timer, which means that I output only the last "message" encountered. It repeats every three seconds for a minute. After a button click it is reactivated for another minute.
I have encapsulated my simple UI (with code for both input and output) in a handy class, and used it in quite a few hacks.
If someone is interested I can probably encapusate it in a convenient library.