change debouce

This commit is contained in:
Siwat Sirichai 2024-04-01 13:34:45 +07:00
parent 89c4043faa
commit b5689804b6
2 changed files with 8 additions and 1 deletions

View file

@ -131,6 +131,13 @@ void setup()
// // ------------ Factory Reset Routine ------------
// Disable factory reset for now
espmega.inputs.loop();
//set debounce time to 200 for pin 0-7
for (uint16_t i = 0; i < 8; i++){
espmega.inputs.setDebounceTime(i,200);
}
// if (clear_fram)
// {
// Serial.print("boot_state.txt=\"Factory Resetting . . .\"");