File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717// 26.09.2018 Anatoli Arkhipenko: Included solution to use library with other
1818// sources of input.
1919// 26.09.2018 Initialization moved into class declaration.
20+ // 26.09.2018 Jay M Ericsson: compiler warnings removed.
2021// -----
2122
2223#ifndef OneButton_h
@@ -82,11 +83,11 @@ class OneButton
8283
8384private:
8485 int _pin; // hardware pin number.
85- int _debounceTicks = 50 ; // number of ticks for debounce times.
86- int _clickTicks = 600 ; // number of ticks that have to pass by
87- // before a click is detected.
88- int _pressTicks = 1000 ; // number of ticks that have to pass by before a long
89- // button press is detected
86+ unsigned int _debounceTicks = 50 ; // number of ticks for debounce times.
87+ unsigned int _clickTicks = 600 ; // number of ticks that have to pass by
88+ // before a click is detected.
89+ unsigned int _pressTicks = 1000 ; // number of ticks that have to pass by
90+ // before a long button press is detected
9091
9192 int _buttonPressed;
9293
You can’t perform that action at this time.
0 commit comments