/* Arduino and OLED Displaying Text * Programmer: R.Jordan Kreindler * Created: November 8, 2020 */ #include U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R1, SCL, SDA, U8X8_PIN_NONE); /* U8G2_R0 No rotation, landscape U8G2_R1 90 degree clockwise rotation // Moves us to portrait U8G2_R2 180 degree clockwise rotation U8G2_R3 270 degree clockwise rotation */ void setup() { u8g2.begin(); u8g2.setFont(u8g2_font_ncenR18_tf ); // Font size 18 u8g2.drawStr(17, 40, "Test"); // Display resolution is 64 x 128 u8g2.drawStr(20, 80, " L2 "); u8g2.drawStr(20, 120," L3 "); u8g2.sendBuffer(); } void loop() {}