vermutlich.
Dann sperren auf eine andere Art:
if (encoderPos == 4)
{
static bool tik = false;
static bool tak = false;
if (!digitalRead(encoderPinSW))
{
if (!tik && !tak)
{
tik = true;
tak = true;
lcd.setCursor(6, 1);
lcd.print(" Mute* ");
}
else if (!tik && tak)
{
tik = true;
tak = false;
lcd.setCursor(6, 1);
lcd.print("--Mute-- ");
}
}
else
{
tik = false;
}
}
Ob das funktioniert... Keinen Plan.