From 1762c56956bafd6fc0636516b494dfa935ff8aec Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Wed, 25 Dec 2024 00:34:42 +0100 Subject: space_light: first version TODO: pwm initialization is currently best guess could be wrong active low|high TODO: implement pairing TODO: implement timer TODO: use the button for something TODO: implement a better client --- usr/space_light/include/space_light.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 usr/space_light/include/space_light.h (limited to 'usr/space_light/include') diff --git a/usr/space_light/include/space_light.h b/usr/space_light/include/space_light.h new file mode 100644 index 0000000..b0ca6b8 --- /dev/null +++ b/usr/space_light/include/space_light.h @@ -0,0 +1,14 @@ +#pragma once +#include + +struct RGBCW { + uint8_t r; // 0-255 + uint8_t g; // 0-255 + uint8_t b; // 0-255 + uint8_t c; // 0-100 + uint8_t w; // 0-100 +}; + +void init_led_thread (void *arg); + +void setRGBCW(struct RGBCW* rgbcw); -- cgit v1.2.3