Fix led OK

This commit is contained in:
Clement 2023-10-27 20:52:04 +02:00
parent 92943ff3e9
commit 0a6aafd362

View File

@ -54,28 +54,15 @@ int LedLib::getledNB(){
} }
void LedLib::okBlink(){ void LedLib::okBlink(){
int tempR; this->strip->clear();
int tempV; for(int i = 0; i < 3; i++){
int tempB; for(int j = 0; j < 24; j++){
this->strip->setPixelColor(j, 0, 255, 0);
for (int i = 0; i < 3*2; i++) { }
if(i%2 == 0){ this->strip->show();
tempR = 0; delay(100);
tempV = 0; this->strip->clear();
tempB = 0; this->strip->show();
delay(100);
}else{ }
tempR = 75;
tempV = 181;
tempB = 67;
}
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->show();
}
} }