from ssd1306 import SSD1306_I2C
from machine import Pin, I2C
from time import sleep

# SDA, GPIO6, I2C Data
# SCL, GPIO7, I2C Clock
i2c = I2C(1, scl=Pin(7), sda=Pin(6), freq=200000)
oled = SSD1306_I2C(128, 64, i2c)

while True:
    
    # move text from top to bottom
    for y in range(-24, 64):   # start slightly above screen
        oled.fill(0)           # clear display
        
        oled.text("FabAcademy2026!", 0, y)
        oled.text("FabLab Oulu!", 0, y+10)
        oled.text("OMID", 0, y+20)
        
        oled.show()
        sleep(0.05)