Created
May 9, 2011 20:58
-
-
Save johnboiles/963389 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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