Commit f78433c 1 parent cee0985 commit f78433c Copy full SHA for f78433c
File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 17
17
// 26.09.2018 Anatoli Arkhipenko: Included solution to use library with other
18
18
// sources of input.
19
19
// 26.09.2018 Initialization moved into class declaration.
20
+ // 26.09.2018 Jay M Ericsson: compiler warnings removed.
20
21
// -----
21
22
22
23
#ifndef OneButton_h
@@ -82,11 +83,11 @@ class OneButton
82
83
83
84
private:
84
85
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
90
91
91
92
int _buttonPressed;
92
93
You can’t perform that action at this time.
0 commit comments