Effects added :-)

This commit is contained in:
StefansE
2026-03-25 19:06:44 +01:00
parent 7aea97a648
commit 5a4d46bbba
6 changed files with 104 additions and 21 deletions

28
Core/Inc/ws2812_drv.h Normal file
View 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
View 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_ */