1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2024-12-04 17:17:55 +01:00
aic_pico/firmware/src/light.h
2023-11-18 10:45:47 +08:00

26 lines
483 B
C

/*
* 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"
void light_init();
void light_update();
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);
void light_set_color(unsigned index, uint32_t color);
void light_set_color_all(uint32_t color);
void light_stimulate();
#endif