You might consider posting your entire program. But I'm thinking, s.write sends characters, not bits. Is that your intent? You might be shifting a lot of binary zeros before the transfer to the output.
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.
You might consider posting your entire program. But I'm thinking, s.write sends characters, not bits. Is that your intent? You might be shifting a lot of binary zeros before the transfer to the output.