mirror of
https://github.com/Architeuthis-Flux/Jumperless.git
synced 2024-11-23 23:00:57 +01:00
add a double button press timer
This commit is contained in:
parent
022b511062
commit
f0e15a1fd7
@ -149,12 +149,13 @@ restartProbing:
|
||||
|
||||
row[0] = scanRows(ADC0_PIN);
|
||||
|
||||
if (row[0] == -18 && (millis() - probingTimer > 500) && checkProbeButton() == 1 && millis() - probeButtonTimer > 1500)
|
||||
if (row[0] == -18 && (millis() - probingTimer > 500) && checkProbeButton() == 1 && millis() - probeButtonTimer > 1000)
|
||||
{
|
||||
if (longShortPress(1000) == 1)
|
||||
if (longShortPress(750) == 1)
|
||||
{
|
||||
setOrClear = !setOrClear;
|
||||
probingTimer = millis();
|
||||
probeButtonTimer = millis();
|
||||
goto restartProbing;
|
||||
break;
|
||||
}
|
||||
@ -218,7 +219,8 @@ restartProbing:
|
||||
|
||||
node1or2++;
|
||||
probingTimer = millis();
|
||||
// showLEDsCore2 = 1;
|
||||
probeButtonTimer = millis();
|
||||
showLEDsCore2 = 2;
|
||||
delay(30);
|
||||
}
|
||||
else if (connectedRowsIndex == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user