Search found 1 match

by JSTFLK
Tue Sep 22, 2020 3:25 am
Forum: STM32F1 based boards
Topic: Using STM32F103C8T6 PWM pin to drive ws2812b Neopixel Ring in arduino IDE
Replies: 13
Views: 22852

Re: Using STM32F103C8T6 PWM pin to drive ws2812b Neopixel Ring in arduino IDE

Try this for the WS2812B example: void setup() { SPI.setModule(2); //SPI2 uses PB15 instead of PA7 for MOSI strip.begin();// Sets up the SPI strip.show();// Clears the strip, as by default the strip data is set to all LED's off. strip.setBrightness(128); // 0 to 255 SPI.setClockDivider(SPI_CLOCK_DIV...

Go to advanced search