mirror of
https://gitee.com/dlmu-cone/tronone-h7-scaffold
synced 2026-07-24 03:27:45 +08:00
add ws2812task
This commit is contained in:
12
User_Code/module/periph/ws2812/ws2812.h
Normal file
12
User_Code/module/periph/ws2812/ws2812.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef WS2812_H
|
||||
#define WS2812_H
|
||||
|
||||
|
||||
#include "main.h"
|
||||
|
||||
|
||||
#define WS2812_SPI_UNIT hspi6
|
||||
extern SPI_HandleTypeDef WS2812_SPI_UNIT;
|
||||
|
||||
void WS2812_Ctrl(uint8_t r, uint8_t g, uint8_t b);
|
||||
#endif
|
||||
Reference in New Issue
Block a user