Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Cheap (ie. fast) gamma correction (contrast adjustment) that can be run right before calling FastLED.show()
- void adjust_gamma()
- {
- for (uint16_t i = 0; i < NUM_LEDS; i++)
- {
- leds[i].r = dim8_video(leds[i].r);
- leds[i].g = dim8_video(leds[i].g);
- leds[i].b = dim8_video(leds[i].b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment