from machine import Pin, I2C
import time
from ssd1306 import SSD1306_I2C
# I2C ulanish (ESP32 GPIO: SDA=21, SCL=22)
i2c = I2C(0, scl=Pin(22), sda=Pin(21))
# OLED displey
oled = SSD1306_I2C(128, 64, i2c)
text = "KIUT ISE-51U InoyaAtulla_dev"
text_width = len(text)
x = 128
while True:
oled.fill(0)
oled.text(text, x, 28)
oled.show()
x -= 4
if x < -text_width:
x = 128
time.sleep(0.01)