Merge commit '5e86674e6832d25ee053b1c03e85c372cad42547' into feat/main-algo

This commit is contained in:
Clement 2023-11-17 19:37:46 +01:00
commit 3fc400e655
2 changed files with 13 additions and 24 deletions

View File

@ -55,28 +55,15 @@ int LedLib::getledNB(){
} }
//FIXME: this function is broken //FIXME: this function is broken
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();
}
} }

View File

@ -39,6 +39,8 @@ Program::Program() {
// Startup LEDs // Startup LEDs
this->ledLib = new LedLib(PIXEL_COUNT, PIXEL_PIN, 255); this->ledLib = new LedLib(PIXEL_COUNT, PIXEL_PIN, 255);
this->ledLib->okBlink();
} }
void Program::sendTime(String timeEnd){ void Program::sendTime(String timeEnd){