Skip to content

Instantly share code, notes, and snippets.

@toinetoine
Created February 28, 2016 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toinetoine/30f03f7768f46bcf3187 to your computer and use it in GitHub Desktop.
Save toinetoine/30f03f7768f46bcf3187 to your computer and use it in GitHub Desktop.
datastructs.h
#define LED_COUNT (11)
#define LED(n) (1 << (n))
#define ALL_LEDS(LED(LED_COUNT)-1)
struct frame {
unsigned short *data;
unsigned int resolution;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment