Skip to content

Instantly share code, notes, and snippets.

@johnboiles
Created May 9, 2011 20:58
Show Gist options
  • Save johnboiles/963389 to your computer and use it in GitHub Desktop.
Save johnboiles/963389 to your computer and use it in GitHub Desktop.
// Check if it's a start value (0 for dmx)
if (in == 0){
// Get values for each light. Currently I'm just
// leaving this as 4, but in the future it could be
// more.
// TODO: we shoud have a configureable starting address for DMX
for(i = 0; i < NUMBEROFLIGHTS; i++){
Lights[i].intensity = USART_Receive();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment