setting the pinMode to 'output' should resolve the first Green Neo issue. I found that point interesting as I had written tons of Neopixel code in 1V99 and never witnessed the first Green Neo anomaly ever.
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.
Tue 2019.01.22
The following did not occur in 1V99 but is now repeatable in 2v00
From @allObjects and @MaBe exchange in #65
setting the pinMode to 'output' should resolve the first Green Neo issue. I found that point interesting as I had written tons of Neopixel code in 1V99 and never witnessed the first Green Neo anomaly ever.
Note that Not calling pinMode() first responds with the following default:
and, consequently turns on the first Neo Green even when triplet 0,0,0 is sent for black
From the Note:
So setting to false should dis-able automatic then?:
Verified:
but, subsequent calls to
require("neopixel").write(B15, ar);
toggle the state back toand, the first Neo in the string returns as Green. Not what we want.
Were there changes to the Neopixel module since 1V99 ?