Skip to content

Commit 8268617

Browse files
committed
1.1.2
1 parent aec4094 commit 8268617

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## **Versatile_RotaryEncoder Library V1.1.1** for Arduino
1+
## **Versatile_RotaryEncoder Library V1.1.2** for Arduino
22
**Written by:** _Rui Seixas Monteiro_.
33

44
## Installation
@@ -72,7 +72,7 @@ This functions reads the encoder and runs all Handle functions accordingly. It r
7272
By default every 2 ms the encoder is readed, you can set a diffrent value with this function.
7373

7474
#### **`Versatile_RotaryEncoder.setShortPressDuration( byte )`**
75-
By default it's set 30 ms for the encoder switch debounce, you can set a diffrent value with this function.
75+
By default it's set 50 ms for the encoder switch debounce, you can set a diffrent value with this function.
7676

7777
#### **`Versatile_RotaryEncoder.setLongPressDuration( unsigned int )`**
7878
By default it's set 1000 ms for the press be considered a long press, you can set a diffrent value with this function.

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Versatile_RotaryEncoder
2-
version=1.1.1
2+
version=1.1.2
33
author=ruiseixasm, Rui Seixas Monteiro
44
maintainer=Rui Seixas Monteiro
55
sentence=A rotary encoder library that allows the callback of up to 9 different functions representing the same number of different encoder events. These different functions can be associated with events like press rotate and long press among many others.

src/Versatile_RotaryEncoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Versatile_RotaryEncoder {
3232
uint8_t buttonBits = 0b111; // 8 bits
3333

3434
uint8_t read_interval_duration = 2; // by default reads the encoder each 2ms
35-
uint8_t short_press_duration = 30; // debounce duration to avoid noise triggering
35+
uint8_t short_press_duration = 50; // debounce duration to avoid noise triggering
3636
uint16_t long_press_duration = 1000;
3737
uint32_t last_encoder_read = 0;
3838
uint32_t last_switch;

0 commit comments

Comments
 (0)