2
0
Fork 0

adjust debounce and loop

This commit is contained in:
Siwat Sirichai 2024-06-21 20:55:32 +07:00
parent eef52ca4e8
commit d2e3dc8c90
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -135,6 +135,10 @@ void button_init()
void loop()
{
leftOnButton.loop();
leftOffButton.loop();
rightOnButton.loop();
rightOffButton.loop();
espmega.loop();
}