X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=firmware%2Ftuer.pde;h=ddf8ba3f3d68f9f9e338419de2344aa0b17fcf15;hb=39fd8ec76a516b503ddd499931f5905f7993cd34;hp=c0c4bf170409239d627fad225cbe38e40fb5421d;hpb=082cf658c276a87e89c0f427683371c7a85ac349;p=svn42.git diff --git a/firmware/tuer.pde b/firmware/tuer.pde index c0c4bf1..ddf8ba3 100644 --- a/firmware/tuer.pde +++ b/firmware/tuer.pde @@ -22,7 +22,7 @@ byte next_led = 0; #define MANUAL_OPEN_PIN 12 // keys for manual open and close #define MANUAL_CLOSE_PIN 13 // -#define DEBOUNCE_DELAY 625 // * 16us = 10ms +#define DEBOUNCE_DELAY 6250 // * 16us = 100ms #define DEBOUNCE_IDLE 0 // currently no debouncing #define DEBOUNCE_OPEN 1 // debouncing open key #define DEBOUNCE_CLOSE 2 // debouncing close key @@ -109,7 +109,7 @@ void start_debounce_timer() // this breaks millis() function, but who cares debounce_cnt = DEBOUNCE_DELAY; TCCR0A = 0; // no prescaler, WGM = 0 (normal) - TCCR0B = 1< 16us @ 16 MHz TCNT0 = 0; // reseting timer TIMSK0 = 1<