Thanks Gordon, for your fast reply.
I also tried to just use the middle part of the example, but didn't realize that I have to change the flags. Your code above works perfectly!
Thanks again, for your help.
@LongJogger 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.
Thanks Gordon, for your fast reply.
I also tried to just use the middle part of the example, but didn't realize that I have to change the flags. Your code above works perfectly!
Thanks again, for your help.