From 68b5f182af145fdd9e62c9dde3eedcb9108f5ba4 Mon Sep 17 00:00:00 2001 From: Tobias Wiese Date: Mon, 3 May 2021 23:58:30 +0200 Subject: Initial commit Signed-off-by: Tobias Wiese --- color.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 color.c (limited to 'color.c') diff --git a/color.c b/color.c new file mode 100644 index 0000000..f7c1261 --- /dev/null +++ b/color.c @@ -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); +} -- cgit v1.2.3