Success, but once again I've only an idea of an idea why, but it works.
Removed en.reset() and en.set() from g.scan
Pushed {callback:en.reset.bind(en)} as first entry into arr,
Pushed {callback:en.set.bind(en)} as last entry into arr
Due to this, lines 15 and 31 have same brightness as all others.
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.
Success, but once again I've only an idea of an idea why, but it works.
Removed en.reset() and en.set() from g.scan
Pushed {callback:en.reset.bind(en)} as first entry into arr,
Pushed {callback:en.set.bind(en)} as last entry into arr
Due to this, lines 15 and 31 have same brightness as all others.