Add some logic to the encoder to only register a button press after a certain number of inputs.
This commit is contained in:
parent
4c5b51f7b8
commit
145e383bc5
5 changed files with 20 additions and 7 deletions
|
@ -48,7 +48,7 @@ void setup() {
|
|||
js.Init();
|
||||
|
||||
Serial.println("Adding encoder.");
|
||||
js.AddEncoder(ENCODER, ENCODER_PULSED_SPLIT);
|
||||
js.AddEncoder(ENCODER, 3, ENCODER_PULSED_SPLIT);
|
||||
|
||||
// Different types of button programming are available. BUTTON_PASSTHRU simply passes on the button's
|
||||
// real state, and will be the most common, but you can also change how the button works in software like so...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue