Skip to content

Instantly share code, notes, and snippets.

@hsiboy
Created January 10, 2016 21:31
Show Gist options
  • Save hsiboy/dceca39a9df1c32cbd68 to your computer and use it in GitHub Desktop.
Save hsiboy/dceca39a9df1c32cbd68 to your computer and use it in GitHub Desktop.
FastLED - read value from given pixel and convert to hex RGB
long HexRGB = ((long)leds[i].r << 16) | ((long)leds[i].g << 8 ) | (long)leds[i].b; // get value and convert.
Serial.println("Hex: 0x" + String(HexRGB, HEX));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment