#include "libleds.h" static struct led_obj const PANEL = {0, 1<<7, 32, 8}; static unsigned char const INTENSITY = 0x01; void led_main() { struct led_color const colors[] = { {0x0000000, 0x0000000, 0x0000000}, {INTENSITY, 0x0000000, 0x0000000}, {0x0000000, INTENSITY, 0x0000000}, {INTENSITY, INTENSITY, 0x0000000}, {0x0000000, 0x0000000, INTENSITY}, {INTENSITY, 0x0000000, INTENSITY}, {0x0000000, INTENSITY, INTENSITY}, {INTENSITY, INTENSITY, INTENSITY}, }; for(int x = 0; x < PANEL.width; x++) for (int i = 0; i < (sizeof(colors) / sizeof(colors[0])); i++) led_write_rgb(PANEL.port, PANEL.pins, colors[i]); }