adjust debounce and loop
This commit is contained in:
parent
eef52ca4e8
commit
d2e3dc8c90
|
@ -7,8 +7,8 @@
|
|||
#define RIGHT_OFF_BUTTON_PIN 1
|
||||
#define LEFT_ON_BUTTON_PIN 2
|
||||
#define LEFT_OFF_BUTTON_PIN 3
|
||||
#define BUTTON_SHORT_PRESS_TIME_MS 150
|
||||
#define BUTTON_LONG_PRESS_TIME_MS 2000
|
||||
#define BUTTON_SHORT_PRESS_TIME_MS 75
|
||||
#define BUTTON_LONG_PRESS_TIME_MS 600
|
||||
|
||||
#define RIGHT_LIGHT_RELAY_PIN 0
|
||||
#define LEFT_LIGHT_RELAY_PIN 1
|
||||
|
|
|
@ -135,6 +135,10 @@ void button_init()
|
|||
|
||||
void loop()
|
||||
{
|
||||
leftOnButton.loop();
|
||||
leftOffButton.loop();
|
||||
rightOnButton.loop();
|
||||
rightOffButton.loop();
|
||||
espmega.loop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue