Skip to content

Commit a0440c3

Browse files
committed
check ssd1306 example on avr
menu must be used with 8 pixel height font and as usual with monometric font
1 parent d548f7c commit a0440c3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

examples/SSD1306Ascii/SSD1306Ascii/SSD1306Ascii.ino

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,15 @@ void setup() {
157157
Wire.begin();
158158
oled.begin(&Adafruit128x64, I2C_ADDRESS);
159159
oled.setFont(System5x7);
160+
// oled.setFont(Verdana12);
160161
oled.clear();
162+
oled.setCursor(0,0);
161163
oled.print("menu 4.x test");
162-
// nav.idleTask=idle;//point a function to be used when menu is suspended
164+
oled.setCursor(0,1);
165+
oled.print("SSD1306Ascii");
166+
delay(2000);
167+
oled.clear();
168+
nav.idleTask=idle;//point a function to be used when menu is suspended
163169
}
164170

165171
void loop() {

examples/SSD1306Ascii/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ platform = atmelavr
1616
board = nanoatmega328
1717
framework = arduino
1818
upload_port=/dev/ttyUSB*
19-
; upload_flags=-V
19+
upload_flags=-V
2020
upload_speed=57600
2121
build_flags = -DMENU_DEBUG
2222
src_build_flags = !echo "-Wno-write-strings -Wno-reorder -DLOC="$PLATFORMIO_LOC

0 commit comments

Comments
 (0)