Skip to content

Commit 989951e

Browse files
committed
fix some references
1 parent cfeac50 commit 989951e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/btnNav/btnNav/btnNav.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Digital keypad (3 buttons) using the menu keyIn driver
88
#include <menu.h>
99
#include <menuIO/serialIn.h>
1010
#include <menuIO/serialOut.h>
11-
#include <menuIO/keyIn.h>
11+
#include <menuIO/altKeyIn.h>
1212
#include <menuIO/chainStream.h>
1313

1414
using namespace Menu;
@@ -109,9 +109,9 @@ MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle
109109
);
110110

111111
keyMap joystickBtn_map[]={
112-
{-BTN_SEL, defaultNavCodes[enterCmd].ch} ,
113-
{-BTN_UP, defaultNavCodes[upCmd].ch} ,
114-
{-BTN_DOWN, defaultNavCodes[downCmd].ch} ,
112+
{-BTN_SEL, defaultNavCodes[enterCmd].ch,INPUT_PULLUP} ,
113+
{-BTN_UP, defaultNavCodes[upCmd].ch,INPUT_PULLUP} ,
114+
{-BTN_DOWN, defaultNavCodes[downCmd].ch,INPUT_PULLUP} ,
115115
};
116116
keyIn<3> joystickBtns(joystickBtn_map);
117117

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ArduinoMenu library
2-
version=4.15.9
2+
version=4.15.10
33
author=Rui Azevedo, [email protected]
44
maintainer=neu-rah, [email protected]
55
sentence=Generic menu/interactivity system

src/menuIO/altKeyIn.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ex: -A0 means: pin A0 normally high, low when button pushed (reverse logic)
1616

1717
namespace Menu {
1818

19-
#include "keyMapDef.h"
19+
#include "altKeyMapDef.h"
2020

2121
//if you hold/repeat a key for this ammount of time we will consider it an escape
2222
#ifndef ESCAPE_TIME
@@ -34,7 +34,7 @@ ex: -A0 means: pin A0 normally high, low when button pushed (reverse logic)
3434
void begin() {
3535
for(int n=0;n<N;n++)
3636
pinMode(keys[n].pin,keys[n].mode);
37-
37+
3838
}
3939
int available(void) {
4040
//MENU_DEBUG_OUT<<"available"<<endl;

0 commit comments

Comments
 (0)