I need help with a LED light stick. Next row indefinitely The data in the row ne

void drawTower(){

towerX -= hSpeed;
int x = (int)towerX;
if(x < 0){
x = 7;
towerX = 7;
gapY = random(0, 8);
}

for(int i = 0; i < 8; i++){ //draw the tower
if(i <= gapY || i >= gapY+3){
strip.begin();
strip.setPixelColor(x+1,0, 0, 255);
strip.setPixelColor(x,0, 0, 255);
strip.show();
}
}

if(x == 2)
checkCollisions();
}

RGB LED's I love these!
I just got a smaller set


Yours were too big for my liking but they work great!

I need more of your code to help you and Post them with code tags to the </> button at the top to prevent the :slight_smile: >:( :o :confused: from appearing in the code
Z

gapY = random(0, 8);

You get a random number between 0 and smiley face?

PaulS:
You get a random number between 0 and smiley face?

xD Comment of the year!

Read this http://forum.arduino.cc/index.php/topic,148850.0.html