Skip to content

Instantly share code, notes, and snippets.

@Isaac-the-Man
Last active April 20, 2019 06:20
Show Gist options
  • Save Isaac-the-Man/029a11ff91e7bfd8288c418759877a6b to your computer and use it in GitHub Desktop.
Save Isaac-the-Man/029a11ff91e7bfd8288c418759877a6b to your computer and use it in GitHub Desktop.
#include "U8g2lib.h"
// declare the OLED of your choice
U8G2_SH1106_128X64_NONAME_1_SW_I2C oled(U8G2_R0, A5, A4);
void setup(void) {
oled.begin();
}
void loop(void) {
oled.firstPage();
do {
// choose your own font
oled.setFont(u8g2_font_guildenstern_nbp_tf);
oled.drawStr(22,32,"Simply Code Based");
} while(oled.nextPage());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment