Skip to content
Snippets Groups Projects
Commit 24e59a00 authored by Leo's avatar Leo :shark:
Browse files

Serial

parent fac113df
No related branches found
No related tags found
No related merge requests found
#include <Arduino.h>
#include <USBComposite.h>
#include <U8g2lib.h>
#ifdef U8X8_HAVE_HW_SPI
......@@ -10,9 +11,19 @@
U8G2_SSD1306_128X64_NONAME_F_HW_I2C oled(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
USBMultiSerial<1> VirtSerial;
void setup(void) {
oled.begin();
VirtSerial.begin();
VirtSerial.ports[0].println("Moin");
oled.begin();
oled.setFont(u8g2_font_bubble_tr);
oled.firstPage();
do {
......@@ -22,13 +33,10 @@ void setup(void) {
oled.print("Stick");
} while ( oled.nextPage() );
delay(1000);
}
void loop(void) {
oled.clear();
oled.write(millis());
oled.display();
delay(100);
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment