This is a pseudo code from my LED cube project
void loop(){
//switch( map(constrain(analogRead(pt),10,1020),10,1020,1,4)); - for select pattern
//show(1);
for(lp=128;lp>=1;lp = lp/2){
runfor(1000,lp,1,0,0,0,0);
//Serial.println("HI");
}
}
void runfor(short mills,byte a,byte b,byte c,byte d,byte e,byte f){
timer = millis();
Serial.println(a);
while((millis()-timer)<=mills){
light_L1(a,b);
//light_L2(c,d);
//light_L3(e,f);
}
}
the variable 'lp' here never changes its value and remains 128
Why is this?
lp
does not change?