LED clock
 All Files Functions Variables Macros Groups
Macros
SPI peripheral used to control the WS2812B LEDs

peripheral configuration More...

Macros

#define LED_WS2812B_SPI   SPI1
 SPI peripheral.
 
#define LED_WS2812B_SPI_DR   SPI1_DR
 SPI data register for the DMA.
 
#define LED_WS2812B_SPI_RCC   RCC_SPI1
 SPI peripheral clock.
 
#define LED_WS2812B_SPI_PORT_RCC   RCC_GPIOA
 SPI I/O peripheral clock.
 
#define LED_WS2812B_SPI_PORT   GPIOA
 SPI port.
 
#define LED_WS2812B_SPI_CLK   GPIO_SPI1_SCK
 SPI clock pin (PA5), connect to PWM output.
 
#define LED_WS2812B_SPI_DOUT   GPIO_SPI1_MISO
 SPI data pin (PA6), connect to WS2812B DIN.
 

Detailed Description

peripheral configuration