2021-07-02 16:45:29 +00:00
|
|
|
#ifndef FIRMWARE_LUX_H
|
|
|
|
#define FIRMWARE_LUX_H
|
|
|
|
|
2022-09-24 05:48:47 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2021-07-02 16:45:29 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2021-07-19 20:31:30 +00:00
|
|
|
void lux_task(void *pvParameters);
|
|
|
|
|
|
|
|
void signal_led(bool state);
|
|
|
|
|
2022-09-22 19:48:36 +00:00
|
|
|
typedef struct {
|
2022-09-24 05:48:47 +00:00
|
|
|
uint8_t r;
|
|
|
|
uint8_t g;
|
|
|
|
uint8_t b;
|
|
|
|
uint8_t a;
|
2022-09-22 19:48:36 +00:00
|
|
|
} rgba_t;
|
|
|
|
|
2023-01-19 17:11:13 +00:00
|
|
|
extern volatile rgba_t top_color;
|
|
|
|
extern volatile rgba_t bottom_color;
|
2023-01-19 06:07:24 +00:00
|
|
|
extern volatile uint16_t light_value;
|
2022-09-22 19:48:36 +00:00
|
|
|
|
2023-02-18 19:59:55 +00:00
|
|
|
extern volatile int32_t led_amount;
|
|
|
|
|
2023-01-19 17:11:13 +00:00
|
|
|
extern volatile uint16_t peripheral_version;
|
|
|
|
|
2021-07-02 16:45:29 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //FIRMWARE_LUX_H
|