from machine import Pin, I2C
import ssd1306
import time
# Initialize I2C bus (same pins you used)
i2c = I2C(0, scl=Pin(1), sda=Pin(0), freq=400000)
# OLED width and height (adjust if your OLED is different)
WIDTH = 128
HEIGHT = 64
# Initialize OLED display
oled = ssd1306.SSD1306_I2C(WIDTH, HEIGHT, i2c)
# Clear the display
oled.fill(0)
# Write text at x=0, y=0
oled.text('sanjai', 0, 0)
# Show it on the OLED
oled.show()
# Keep the text on display
while True:
time.sleep(1)