X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=firmware%2Ftuer.pde;h=ac1a18ac694608d3116c2d6f093a58f98e43b60a;hb=a40f2d7edc811267d72c0c476050d7e565342f13;hp=c0c4bf170409239d627fad225cbe38e40fb5421d;hpb=082cf658c276a87e89c0f427683371c7a85ac349;p=svn42.git diff --git a/firmware/tuer.pde b/firmware/tuer.pde index c0c4bf1..ac1a18a 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<