add ws2812task

This commit is contained in:
TuxMonkey
2025-11-03 22:14:44 +08:00
parent 7a113a32dd
commit 183cc81446
4 changed files with 263 additions and 0 deletions

View 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