Check out https://www.espruino.com/Reference#l_SPIĀ_send4bit
The old way of doing neopixels on STM32 was:
SPI1.setup({baud:3200000, mosi:B5}); SPI1.send4bit(leds, 0b0001, 0b0011); // send to the lights
and that's basically what still happens under the hood.
If you tried:
SPI1.send4bit(leds, 0b1110, 0b1100);
instead then it might invert everything for you.
@Gordon started
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.
Check out https://www.espruino.com/Reference#l_SPIĀ_send4bit
The old way of doing neopixels on STM32 was:
and that's basically what still happens under the hood.
If you tried:
instead then it might invert everything for you.