Working leds
This commit is contained in:
26
Drivers/STM32F1xx_HAL_Driver/Inc/ws2812.h
Normal file
26
Drivers/STM32F1xx_HAL_Driver/Inc/ws2812.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* ws2812.h
|
||||
*
|
||||
* Created on: Mar 25, 2026
|
||||
* Author: ewars
|
||||
*/
|
||||
|
||||
#ifndef STM32F1XX_HAL_DRIVER_INC_WS2812_H_
|
||||
#define STM32F1XX_HAL_DRIVER_INC_WS2812_H_
|
||||
|
||||
|
||||
#define LED_N 24
|
||||
#define RESET_LEN 50
|
||||
|
||||
#define PWM_ZERO 29
|
||||
#define PWM_ONE 58
|
||||
|
||||
|
||||
void ws2812_Init(void);
|
||||
void ws2812_update(void);
|
||||
void ws2812_set_colour(uint8_t led, uint8_t red, uint8_t green, uint8_t blue);
|
||||
void ws2812_wait(void);
|
||||
void ws2812_reset(void);
|
||||
|
||||
|
||||
#endif /* STM32F1XX_HAL_DRIVER_INC_WS2812_H_ */
|
||||
Reference in New Issue
Block a user