Created
April 5, 2018 15:29
-
-
Save IT-Berater/a0b98969445c0377bfe37a813d3b42ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Sei Mutig! | |
Beschreibung: Anzeige des "Sei Mutig!" Textes. | |
Thomas Wenzlaff 05.04.2018 | |
Größe des compilierten Programm: 17688 Byte | |
*/ | |
#include "U8glib.h" | |
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE|U8G_I2C_OPT_DEV_0); | |
void drawTest(void) { | |
u8g.setFont(u8g_font_unifont); | |
u8g.drawStr( 0, 20, "OK, Start..."); | |
} | |
void setup() { | |
u8g.firstPage(); | |
do { | |
drawTest(); | |
} while( u8g.nextPage() ); | |
} | |
void loop() { | |
delay(2000); | |
u8g.firstPage(); | |
do { | |
u8g.setFont(u8g_font_osb18); | |
u8g.setFontPosTop(); | |
u8g.drawStr( 10, 10, "Sei"); | |
u8g.drawStr( 10, 30, "Mutig!"); | |
} while( u8g.nextPage() ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment