Skip to content

Instantly share code, notes, and snippets.

@IT-Berater
Created April 5, 2018 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IT-Berater/a0b98969445c0377bfe37a813d3b42ca to your computer and use it in GitHub Desktop.
Save IT-Berater/a0b98969445c0377bfe37a813d3b42ca to your computer and use it in GitHub Desktop.
/*
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