Visualizing the neopixel timing specifications... and comparing different providers and the SPIX.write4(... option:
Times are to scale. Numbers are times in [us]. The protocol is quite smart and self-reconditioning takes place between the pixels (by the built-in circuitry).
The fat blue and orange lines show the exact specified values. The fine lines are combinations of minim and maximum allowed values concatenated. The shortest times get a bit done in 0.85[us]... still way it the range of 0.65[us]..1.25[us], and the longest 1.6[us], still within the range of 1.25[us]..1.85[us].
SPIX.write4(... w/ 3.2MHz baud rate and writing of 0b0001 and ob0011 for the actual 0 and 1 bit come darn close to spec using only 1/3 and 2/3 of the tolerance...
© Espruino, powered by microcosm.
Report a problem