Effects added :-)
This commit is contained in:
28
Core/Inc/ws2812_drv.h
Normal file
28
Core/Inc/ws2812_drv.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* ws2812.h
|
||||
*
|
||||
* Created on: Mar 25, 2026
|
||||
* Author: ewars
|
||||
*/
|
||||
|
||||
#ifndef INC_WS2812_DRV_H_
|
||||
#define INC_WS2812_DRV_H_
|
||||
|
||||
#include "stdint-gcc.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 /* INC_WS2812_DRV_H_ */
|
||||
18
Core/Inc/ws2812_effect.h
Normal file
18
Core/Inc/ws2812_effect.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ws2812_effect.h
|
||||
*
|
||||
* Created on: Mar 25, 2026
|
||||
* Author: ewars
|
||||
*/
|
||||
|
||||
#ifndef INC_WS2812_EFFECT_H_
|
||||
#define INC_WS2812_EFFECT_H_
|
||||
|
||||
|
||||
void ws_Effect_RoudTheClock(void);
|
||||
void ws_Effect_RandRound(void);
|
||||
void ws_Effect_RandRand(void);
|
||||
|
||||
|
||||
|
||||
#endif /* INC_WS2812_EFFECT_H_ */
|
||||
Reference in New Issue
Block a user