Here the picture of the pocket oscilloscope. Again, only one LED active.
A small performance increase I can see. Your code uses 340us with or without the "| 1".
Clever use of ?: here. You must have used C before ^_^
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.
Here the picture of the pocket oscilloscope. Again, only one LED active.
A small performance increase I can see. Your code uses 340us with or without the "| 1".
Clever use of ?: here. You must have used C before ^_^
My original code uses 440us.
1 Attachment