Created
February 28, 2016 07:18
-
-
Save toinetoine/41e6bb82e08cb32ea5c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "datastructs.h" | |
#define nitems(x) (sizeof(x) / sizeof((x)[0])) | |
static unsigned short spiral_data[LED_COUNT] = { | |
LED(0), LED(1), LED(2), LED(3), | |
LED(4), LED(5), LED(6), LED(7), | |
LED(8), LED(9), LED(10) | |
}; | |
struct frame spiral { | |
.data = spiral_data, | |
.resolution = nitems(spiral_data); | |
}; | |
static unsigned short pacman_data[4] = { | |
ALL_LEDS, ALL_LEDS, ALL_LEDS, 0 | |
}; | |
struct frame pacman { | |
.data = pacman_data, | |
.resolution = nitems(pacman_data); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment