Skip to content

Commit 20beaf6

Browse files
committed
Merge branch 'dev'
2 parents b798fed + 22a280f commit 20beaf6

File tree

30 files changed

+1787
-1733
lines changed

30 files changed

+1787
-1733
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@ multiple stream packing for input to mix encoder stream with encoder keyboard (u
278278
279279
##### Options
280280
281-
**invertFieldKeys** option removed, invertion is now supported by specific menuIn objects.
281+
<del>**invertFieldKeys** option removed, invertion is now supported by specific menuIn objects.</del>
282+
283+
_regression: still needed to ease simple input cases._
282284
283285
**numValueInput** moved to menuIn object
284286

examples/LCDs/LiquidCrystal/LiquidCrystal/LiquidCrystal.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ TOGGLE((mainMenu[1].enabled),togOp,"Op 2:",doNothing,noEvent,noStyle
126126
,VALUE("disabled",disabledStatus,doNothing,noEvent)
127127
);*/
128128

129-
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
130-
char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
129+
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
130+
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
131131
char buf1[]="0x11";
132132

133133
MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle

examples/LCDs/Malpartida/I2C/I2C/I2C.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ http://playground.arduino.cc/Code/LCD3wires
130130
,VALUE("disabled",disabledStatus,doNothing,noEvent)
131131
);*/
132132

133-
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
134-
char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
133+
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
134+
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
135135
char buf1[]="0x11";
136136

137137
MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle

examples/LCDs/PCF8574/PCF8574/PCF8574.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ TOGGLE((mainMenu[1].enabled),togOp,"Op 2:",doNothing,noEvent,noStyle
127127
,VALUE("disabled",disabledStatus,doNothing,noEvent)
128128
);*/
129129

130-
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
131-
char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
130+
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
131+
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
132132
char buf1[]="0x11";
133133

134134
MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle

examples/Serial/ansiSerial/ansiSerial/ansiSerial.ino

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const colorDef<uint8_t> colors[] MEMMODE={
5555
// outputsList out(outputs,1);
5656

5757
MENU_OUTPUTS(out,MAX_DEPTH
58-
,ANSISERIAL_OUT(Serial,colors,{1,1,16,10},{18,1,16,10},{36,1,16,10})
58+
,ANSISERIAL_OUT(Serial,colors,{1,1,26,10},{28,1,16,10},{46,1,16,10})
5959
,NONE//must have 2 items at least
6060
);
6161

@@ -239,16 +239,15 @@ altMENU(menu,birthDate,"Birth",doNothing,noEvent,noStyle,(systemStyles)(_asPad|M
239239
,FIELD(day,"","",1,31,1,0,doNothing,noEvent,wrapStyle)
240240
);
241241

242-
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
243-
char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
242+
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
243+
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
244244
char buf1[]="0x11";
245245

246246
MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle
247-
,SUBMENU(birthDate)
248247
,OP("Op1",action1,anyEvent)
249248
,OP("Op2",action2,enterEvent)
250-
//,SUBMENU(togOp)
251249
,FIELD(test,"Test","%",0,100,10,1,doNothing,noEvent,wrapStyle)
250+
,SUBMENU(birthDate)
252251
,SUBMENU(subMenu)
253252
,SUBMENU(setLed)
254253
,OP("LED On",ledOn,enterEvent)

examples/Serial/serialio/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
[platformio]
1111
src_dir=serialio
12-
lib_dir=~/Arduino/Libraries
12+
; lib_dir=~/Arduino/Libraries
1313

1414
[env:nanoatmega328]
1515
platform = atmelavr

examples/Serial/serialio/serialio/serialio.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ result showEvent(eventMask e,navNode& nav,prompt& item) {
2323
return proceed;
2424
}
2525

26-
int test=55;
26+
float test=55;
2727

2828
result action1(eventMask e) {
2929
Serial.print(e);
@@ -100,12 +100,11 @@ PADMENU(birthDate,"Birth",doNothing,noEvent,noStyle
100100
,FIELD(day,"","",1,31,1,0,doNothing,noEvent,wrapStyle)
101101
);
102102

103-
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
104-
char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
103+
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
104+
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
105105
char buf1[]="0x11";
106106

107107
MENU(mainMenu,"Main menu",zZz,noEvent,wrapStyle
108-
,SUBMENU(birthDate)
109108
,OP("Op1",action1,anyEvent)
110109
,OP("Op2",action2,enterEvent)
111110
,FIELD(test,"Test","%",0,100,10,1,doNothing,noEvent,wrapStyle)
@@ -117,6 +116,7 @@ MENU(mainMenu,"Main menu",zZz,noEvent,wrapStyle
117116
,SUBMENU(chooseMenu)
118117
,OP("Alert test",doAlert,enterEvent)
119118
,EDIT("Hex",buf1,hexNr,doNothing,noEvent,noStyle)
119+
,SUBMENU(birthDate)
120120
,EXIT("<Back")
121121
);
122122

examples/TFT/TFT/TFT.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ using namespace Menu;
3333

3434
TFT tft(CS, DC, RST);
3535

36-
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
37-
char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
36+
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
37+
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
3838
char buf1[]="0x11";//<-- menu will edit this text
3939

4040
MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle

examples/U8G2/U8G2/U8G2.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ MENU(subMenu,"Sub-Menu",doNothing,noEvent,noStyle
138138
,EXIT("<Back")
139139
);
140140

141-
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
142-
char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
141+
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
142+
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
143143
char buf1[]="0x11";
144144

145145
MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle

examples/U8GLib/U8Glib/U8GLib.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ MENU(subMenu,"Sub-Menu",showEvent,anyEvent,noStyle
116116
,EXIT("<Back")
117117
);
118118

119-
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
120-
char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
119+
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
120+
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
121121
char buf1[]="0x11";
122122

123123
MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle

0 commit comments

Comments
 (0)