#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.setFont(u8g2_font_logisoso38_tr); //sets font size for (int i=128; i>-500; i=i-3){ u8g2.clearBuffer(); //clears the screen u8g2.drawStr(i,64, "Follow MakerKootam!"); //displays text from a position u8g2.sendBuffer(); //sends the content to the screen delay(1); } }