Created
June 11, 2019 18:47
-
-
Save Happsson/c4af238637799842c6f18ef623aeeaa3 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
void ShowFrame(char * s, int r, int g, int b){ | |
pixels.clear(); | |
delay(10); | |
char* command = strtok(s, "&"); | |
while (command != NULL) | |
{ | |
int num = atoi(command); | |
Serial.println(num); | |
pixels.setPixelColor(num, pixels.Color(r, g, b, 0)); | |
command = strtok(NULL, "&"); | |
} | |
pixels.show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment