LED clock
|
Macros | |
#define | WS2812B_SPI SPI1 |
#define | WS2812B_SPI_DR SPI1_DR |
#define | WS2812B_SPI_RCC RCC_SPI1 |
#define | WS2812B_SPI_PORT GPIOA |
#define | WS2812B_SPI_CLK GPIO_SPI1_SCK |
#define | WS2812B_SPI_DOUT GPIO_SPI1_MISO |
peripheral configuration
#define WS2812B_SPI SPI1 |
SPI peripheral
Definition at line 42 of file led_ws2812b.c.
#define WS2812B_SPI_CLK GPIO_SPI1_SCK |
SPI clock pin (PA5), connect to PWM output
Definition at line 46 of file led_ws2812b.c.
#define WS2812B_SPI_DOUT GPIO_SPI1_MISO |
SPI data pin (PA6), connect to WS2812b DIN
Definition at line 47 of file led_ws2812b.c.
#define WS2812B_SPI_DR SPI1_DR |
SPI data register for the DMA
Definition at line 43 of file led_ws2812b.c.
#define WS2812B_SPI_PORT GPIOA |
SPI port
Definition at line 45 of file led_ws2812b.c.
#define WS2812B_SPI_RCC RCC_SPI1 |
SPI peripheral clock
Definition at line 44 of file led_ws2812b.c.