Skip to content

Commit

Permalink
Update OneButton.h
Browse files Browse the repository at this point in the history
tune up defaults click ticks and press ticks
  • Loading branch information
ShaggyDog18 committed Oct 1, 2021
1 parent 0d6be54 commit ef9adc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OneButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ class OneButton {

int16_t _pin; // hardware pin number.
uint16_t _debounceTicks = 20;//50; // number of ticks for debounce times.
uint16_t _clickTicks = 200;//400; // number of ticks that have to pass by before a click is detected.
uint16_t _pressTicks = 400;//800; // number of ticks that have to pass by before a long button press is detected
uint16_t _clickTicks = 300;//400; // number of ticks that have to pass by before a click is detected.
uint16_t _pressTicks = 500;//800; // number of ticks that have to pass by before a long button press is detected

// These variables that hold information across the upcoming tick calls.
// They are initialized once on program start and are updated every time the
Expand Down

0 comments on commit ef9adc5

Please sign in to comment.