#include #include #include // Constructor for SSD1306 128x64 OLED with hardware I2C // U8G2_R0 = no rotation, U8X8_PIN_NONE = no reset pin U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/U8X8_PIN_NONE); void setup() { // Initialize I2C (Wire) - megaTinyCore uses default pins PA1 (SDA) and PA2 (SCL) Wire.begin(); // Initialize the display u8g2.begin(); } void loop() { u8g2.clearBuffer(); //clears the screen u8g2.setFont(u8g2_font_6x13_tr); //sets font size u8g2.drawStr(0,30, "Great job, Tom!"); //displays text from a position u8g2.sendBuffer(); //sends the content to the screen }