Skip to content

Instantly share code, notes, and snippets.

@Happsson
Created June 11, 2019 18:47
Show Gist options
  • Save Happsson/c4af238637799842c6f18ef623aeeaa3 to your computer and use it in GitHub Desktop.
Save Happsson/c4af238637799842c6f18ef623aeeaa3 to your computer and use it in GitHub Desktop.
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