1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2024-12-05 01:27:55 +01:00
aic_pico/firmware/src/light.h

26 lines
483 B
C
Raw Normal View History

2023-11-04 13:30:53 +01:00
/*
* RGB LED (WS2812) Strip control
* WHowe <github.com/whowechina>
*/
#ifndef RGB_H
#define RGB_H
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include "config.h"
2023-11-15 14:57:12 +01:00
void light_init();
void light_update();
2023-11-04 13:30:53 +01:00
uint32_t rgb32(uint32_t r, uint32_t g, uint32_t b, bool gamma_fix);
uint32_t rgb32_from_hsv(uint8_t h, uint8_t s, uint8_t v);
2023-11-15 14:57:12 +01:00
void light_set_color(unsigned index, uint32_t color);
void light_set_color_all(uint32_t color);
2023-11-18 03:45:47 +01:00
void light_stimulate();
2023-11-04 13:30:53 +01:00
#endif