summaryrefslogtreecommitdiffstats
path: root/color.c
blob: f7c12616eaea7fa7e7a401063f83a6f467666cc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}