diff options
| author | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2024-12-25 00:34:42 +0100 |
|---|---|---|
| committer | Bernhard Guillon <Bernhard.Guillon@begu.org> | 2024-12-29 19:54:53 +0100 |
| commit | 1762c56956bafd6fc0636516b494dfa935ff8aec (patch) | |
| tree | 5b693c0c70400b71c982401fd9693a48991d3c23 /usr/space_light/include | |
| parent | 40404fb81dfad3f5c5cf567bb053796a9135165e (diff) | |
| download | wb3s-ble-nebula-galaxy-1762c56956bafd6fc0636516b494dfa935ff8aec.tar.gz wb3s-ble-nebula-galaxy-1762c56956bafd6fc0636516b494dfa935ff8aec.zip | |
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
Diffstat (limited to 'usr/space_light/include')
| -rw-r--r-- | usr/space_light/include/space_light.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <stdint.h> + +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); |
