Skip to content

Commit 9ba2039

Browse files
committed
fix textField examples
1 parent 4e30cec commit 9ba2039

File tree

15 files changed

+41
-41
lines changed

15 files changed

+41
-41
lines changed

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-
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
130-
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
129+
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
130+
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-
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
134-
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
133+
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
134+
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-
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
131-
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
130+
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
131+
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ altMENU(menu,birthDate,"Birth",doNothing,noEvent,noStyle,(systemStyles)(_asPad|M
239239
,FIELD(day,"","",1,31,1,0,doNothing,noEvent,wrapStyle)
240240
);
241241

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

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

examples/Serial/serialio/platformio.ini

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ lib_dir=~/Arduino/Libraries
4343
; upload_flags=-V
4444
; build_flags = -DNODEBUG
4545
;
46-
; [env:teensy31]
47-
; platform = teensy
48-
; board = teensy31
49-
; framework = arduino
46+
[env:teensy31]
47+
platform = teensy
48+
board = teensy31
49+
framework = arduino
5050
; build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -lstdc++
5151
;
5252
; [env:due]
@@ -68,13 +68,13 @@ lib_dir=~/Arduino/Libraries
6868
; upload_speed=921600
6969
; build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -lstdc++ -DDEBUG
7070

71-
[env:uno]
72-
platform = atmelavr
73-
board = uno
74-
framework = arduino
75-
76-
[env:redbear_blenano2]
77-
platform = nordicnrf52
78-
board = redbear_blenano2
79-
framework = arduino
80-
build_flags =-DNODEBUG -DARDUINO=10805
71+
; [env:uno]
72+
; platform = atmelavr
73+
; board = uno
74+
; framework = arduino
75+
;
76+
; [env:redbear_blenano2]
77+
; platform = nordicnrf52
78+
; board = redbear_blenano2
79+
; framework = arduino
80+
; build_flags =-DNODEBUG -DARDUINO=10805

examples/Serial/serialio/serialio/serialio.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ PADMENU(birthDate,"Birth",doNothing,noEvent,noStyle
100100
,FIELD(day,"","",1,31,1,0,doNothing,noEvent,wrapStyle)
101101
);
102102

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

107107
MENU(mainMenu,"Main menu",zZz,noEvent,wrapStyle

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-
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
37-
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
36+
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
37+
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
@@ -147,8 +147,8 @@ altMENU(menu,time,"Time",doNothing,noEvent,noStyle,(systemStyles)(_asPad|Menu::_
147147
,FIELD(mins,"","",0,59,10,1,doNothing,noEvent,wrapStyle)
148148
);
149149

150-
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
151-
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
150+
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
151+
char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
152152
char buf1[]="0x11";
153153

154154
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-
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
120-
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
119+
char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
120+
char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
121121
char buf1[]="0x11";
122122

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

examples/U8x8/U8x8/U8x8.ino

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

3434
U8X8_PCD8544_84X48_4W_HW_SPI u8x8(U8_CS, U8_DC , U8_RST);
3535

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

4040
int chooseTest=-1;

0 commit comments

Comments
 (0)