diff options
| author | Tobias Wiese <tobias@tobiaswiese.com> | 2021-05-03 23:58:30 +0200 |
|---|---|---|
| committer | Tobias Wiese <tobias@tobiaswiese.com> | 2021-07-22 02:26:29 +0200 |
| commit | 68b5f182af145fdd9e62c9dde3eedcb9108f5ba4 (patch) | |
| tree | 67c0011276b30f8f785b934be44044935f78bd73 /color.c | |
Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
Diffstat (limited to 'color.c')
| -rw-r--r-- | color.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#include "libleds.h" + +#if !defined(COLOR_RED) || !defined(COLOR_GREEN) || !defined(COLOR_BLUE) +# error Requires COLOR_* symbols to be set. +#endif + +static struct led_obj const PANEL = {0, 1<<7, 32, 8}; + +void led_main() +{ + struct led_color const color = { COLOR_RED, COLOR_GREEN, COLOR_BLUE}; + led_write_rgb_all(PANEL, color); +} |
