-
-
Save mwiemarc/e22058d2a20b1fe3ff2f8a0778dcbb08 to your computer and use it in GitHub Desktop.
FastLED - read value from given pixel and convert to hex RGB
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
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