|
|
@ -2,10 +2,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "KeyboardConfig.h"
|
|
|
|
#include "KeyboardConfig.h"
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct BreathState {
|
|
|
|
typedef struct {
|
|
|
|
uint8_t brightness = 0; // how bright the LED is
|
|
|
|
uint8_t brightness = 0; // how bright the LED is
|
|
|
|
int8_t fadeAmount = 1; // how many points to fade the LED by (can be negative)
|
|
|
|
int8_t fadeAmount = 1; // how many points to fade the LED by (can be negative)
|
|
|
|
};
|
|
|
|
} BreathState;
|
|
|
|
|
|
|
|
|
|
|
|
cRGB breath_compute (BreathState *state);
|
|
|
|
cRGB breath_compute (BreathState *state);
|
|
|
|
cRGB hsv_to_rgb(uint16_t h, uint16_t s, uint16_t v);
|
|
|
|
cRGB hsv_to_rgb(uint16_t h, uint16_t s, uint16_t v);
|
|
|
|