4 Commits

Author SHA1 Message Date
e60c966a97 fix led leb double lib issue 2023-10-22 00:08:01 +02:00
743ca41758 encodeur fix debounce 2023-10-22 00:06:33 +02:00
21294b7fbb fix: encodeur add debounce 2023-10-21 23:38:01 +02:00
e6134dfbc7 feat: start param on led lib 2023-10-21 23:33:59 +02:00
2 changed files with 24 additions and 13 deletions

View File

@ -54,15 +54,28 @@ int LedLib::getledNB(){
}
void LedLib::okBlink(){
this->strip->clear();
for(int i = 0; i < 3; i++){
for(int j = 0; j < 24; j++){
this->strip->setPixelColor(j, 0, 255, 0);
}
this->strip->show();
delay(100);
this->strip->clear();
this->strip->show();
delay(100);
}
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;
}
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,8 +39,6 @@ Program::Program() {
// Startup LEDs
this->ledLib = new LedLib(PIXEL_COUNT, PIXEL_PIN, 255);
this->ledLib->okBlink();
}
void Program::sendTime(String timeEnd){