Skip to content

Commit a8a83ee

Browse files
committed
small fixes
1 parent 6f56bec commit a8a83ee

File tree

3 files changed

+28
-14
lines changed

3 files changed

+28
-14
lines changed

examples/SSD1306Ascii/platformio.ini

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,25 @@
1010

1111
[platformio]
1212
src_dir=SSD1306Ascii
13-
; lib_dir=~/Arduino/Libraries
1413

15-
; [env:nanoatmega328]
16-
; platform=atmelavr
17-
; board=nanoatmega328
18-
; framework=arduino
14+
[env:nanoatmega328]
15+
platform = atmelavr
16+
board = nanoatmega328
17+
framework = arduino
18+
upload_port=/dev/ttyUSB*
19+
upload_flags=-V
20+
upload_speed=57600
21+
build_flags = -DNODEBUG
1922

2023
; [env:teensy31]
2124
; platform = teensy
2225
; board = teensy31
2326
; framework = arduino
24-
;; build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -lstdc++
27+
;; build_flags = -lstdc++
2528

26-
[env:esp12e]
27-
platform = espressif8266
28-
board = esp12e
29-
framework = arduino
30-
upload_speed=921600
31-
build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -lstdc++ -DDEBUG
29+
; [env:esp12e]
30+
; platform = espressif8266
31+
; board = esp12e
32+
; framework = arduino
33+
; upload_speed=921600
34+
; build_flags = -lstdc++ -DDEBUG

examples/Serial/serialio/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ board = nanoatmega328
1717
framework = arduino
1818
upload_port=/dev/ttyUSB*
1919
upload_flags=-V
20-
build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -DNODEBUG
20+
build_flags = -DNODEBUG
2121

2222
; [env:teensy31]
2323
; platform = teensy

examples/U8G2/U8G2/U8G2.ino

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ MENU(subMenu,"Sub-Menu",doNothing,noEvent,noStyle
137137
,EXIT("<Back")
138138
);
139139

140+
uint16_t hrs=0;
141+
uint16_t mins=0;
142+
143+
//define a pad style menu (single line menu)
144+
//here with a set of fields to enter a date in YYYY/MM/DD format
145+
altMENU(menu,time,"Time",doNothing,noEvent,noStyle,(systemStyles)(_asPad|Menu::_menuData|Menu::_canNav|_parentDraw)
146+
,FIELD(hrs,"",":",0,11,1,0,doNothing,noEvent,noStyle)
147+
,FIELD(mins,"","",0,59,10,1,doNothing,noEvent,wrapStyle)
148+
);
149+
140150
const char* constMEM hexDigit MEMMODE="0123456789ABCDEF";
141151
const char* constMEM hexNr[] MEMMODE={"0","x",hexDigit,hexDigit};
142152
char buf1[]="0x11";
@@ -145,6 +155,7 @@ MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle
145155
,OP("Op1",doNothing,noEvent)
146156
,OP("Op2",doNothing,noEvent)
147157
//,FIELD(test,"Test","%",0,100,10,1,doNothing,noEvent,wrapStyle)
158+
,SUBMENU(time)
148159
,SUBMENU(subMenu)
149160
,SUBMENU(setLed)
150161
,OP("LED On",ledOn,enterEvent)
@@ -221,7 +232,7 @@ void setup() {
221232
#endif
222233
u8g2.begin();
223234
u8g2.setFont(fontName);
224-
// u8g2.setBitmapMode(0);
235+
u8g2.setBitmapMode(0);
225236

226237
//disable second option
227238
mainMenu[1].enabled=disabledStatus;

0 commit comments

Comments
 (0)