Open jiritusla opened 4 years ago
Found with btnNav.ino commit 989951e7d51e036a156a0d7f0f042369b85f8bcc ArduinoMenu version: 4.19.0 Tested with Arduino Nano
Steps to reproduce:
Proposed example change:
diff --git a/examples/btnNav/btnNav/btnNav.ino b/examples/btnNav/btnNav/btnNav.ino index 70d5653..18f048b 100644 --- a/examples/btnNav/btnNav/btnNav.ino +++ b/examples/btnNav/btnNav/btnNav.ino @@ -8,7 +8,7 @@ Digital keypad (3 buttons) using the menu keyIn driver #include <menu.h> #include <menuIO/serialIn.h> #include <menuIO/serialOut.h> -#include <menuIO/altKeyIn.h> +#include <menuIO/keyIn.h> #include <menuIO/chainStream.h> using namespace Menu; @@ -109,9 +109,9 @@ MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle ); keyMap joystickBtn_map[]={ - {-BTN_SEL, defaultNavCodes[enterCmd].ch,INPUT_PULLUP} , - {-BTN_UP, defaultNavCodes[upCmd].ch,INPUT_PULLUP} , - {-BTN_DOWN, defaultNavCodes[downCmd].ch,INPUT_PULLUP} , + {-BTN_SEL, defaultNavCodes[enterCmd].ch} , + {-BTN_UP, defaultNavCodes[upCmd].ch} , + {-BTN_DOWN, defaultNavCodes[downCmd].ch} , }; keyIn<3> joystickBtns(joystickBtn_map);
After applying this change it works as expected.
Found with btnNav.ino commit 989951e7d51e036a156a0d7f0f042369b85f8bcc ArduinoMenu version: 4.19.0 Tested with Arduino Nano
Steps to reproduce:
Proposed example change:
After applying this change it works as expected.