feat: led-lib (#3)

This commit is contained in:
2023-10-20 20:51:54 +02:00
parent 3a6d55c646
commit 8edae04556
8 changed files with 126 additions and 1 deletions

View File

@ -31,11 +31,15 @@ Program::Program() {
// Startup Encoder
this->encoder = new SwitchableEncodeur(ENCODER_DT, ENCODER_CLK, ENCODER_SWITCH, 3);
// Startup LEDs
this->ledLib = new LedLib(PIXEL_COUNT, PIXEL_PIN, 255);
}
void Program::loop() {
if(this->encoder->update()){
Serial.print(this->encoder->getValue());
this->ledLib->actLed(this->encoder->getValue());
Serial.print(" ");
Serial.println(this->encoder->getMenu());
}