add bsp_spi

This commit is contained in:
TuxMonkey
2025-11-04 22:02:49 +08:00
parent 183cc81446
commit cdc462789f
6 changed files with 16 additions and 23 deletions

View File

@@ -1,11 +1,9 @@
#ifndef WS2812_H
#define WS2812_H
#include "main.h"
#define WS2812_SPI_UNIT hspi6
#define WS2812_SPI_UNIT hspi6
extern SPI_HandleTypeDef WS2812_SPI_UNIT;
void WS2812_Ctrl(uint8_t r, uint8_t g, uint8_t b);