Fix led OK
This commit is contained in:
parent
92943ff3e9
commit
0a6aafd362
@ -54,28 +54,15 @@ int LedLib::getledNB(){
|
||||
}
|
||||
|
||||
void LedLib::okBlink(){
|
||||
int tempR;
|
||||
int tempV;
|
||||
int tempB;
|
||||
|
||||
for (int i = 0; i < 3*2; i++) {
|
||||
if(i%2 == 0){
|
||||
tempR = 0;
|
||||
tempV = 0;
|
||||
tempB = 0;
|
||||
|
||||
}else{
|
||||
tempR = 75;
|
||||
tempV = 181;
|
||||
tempB = 67;
|
||||
}
|
||||
|
||||
this->strip->clear();
|
||||
for(int i = 0; i < 3; i++){
|
||||
for(int j = 0; j < 24; j++){
|
||||
// On fait clignoter les LEDs pour confirmer
|
||||
// We make the LEDs blink to confirm
|
||||
this->strip->setPixelColor(j-1, tempR, tempV, tempB);
|
||||
this->strip->setPixelColor(j, 0, 255, 0);
|
||||
}
|
||||
|
||||
this->strip->show();
|
||||
delay(100);
|
||||
this->strip->clear();
|
||||
this->strip->show();
|
||||
delay(100);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user