marmil

Swap color order around

Dec 8th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. //swap color order around
  2.  
  3. for (uint8_t i = a; i < b; i++) {
  4.   uint8_t temp = leds[i].r;
  5.   leds[i].r = leds[i].b;
  6.   leds[i].b = leds[i].g;
  7.   leds[i].g = temp;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment