Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1.   for (int i = 0; i<lightCount;i++){
  2.     if ( i == vol) {
  3.         strip.setPixelColor(i, strip.Color(255,0,0));      
  4.     else if (i < vol){
  5.         strip.setPixelColor(i, strip.Color(0,255,0));
  6.     }
  7.     else if (i > vol) {
  8.         strip.setPixelColor(i, strip.Color(0,0,255));
  9.     }
  10.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement