Skip to content

Instantly share code, notes, and snippets.

@mwiemarc
Forked from hsiboy/HexRGB.ino
Created May 13, 2017 11:23
Show Gist options
  • Save mwiemarc/e22058d2a20b1fe3ff2f8a0778dcbb08 to your computer and use it in GitHub Desktop.
Save mwiemarc/e22058d2a20b1fe3ff2f8a0778dcbb08 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