You said:
from machine import Pin, I2C
install ssd1306
import SSD1306_I2C
import time
# Initialize I2C (using default I2C0 on GP0=SDA, GP1=SCL)
i2c = I2C(0, scl=Pin(4), sda=Pin(3), freq=400000)
# OLED width and height
oled_width = 128
oled_height = 64
# Initialize display
oled = ssd1306.SSD1306_I2C(oled_width, oled_height, i2c)
# Clear display
oled.fill(0)
# Write text
oled.text("Hello", 0, 0)
# Show on display
oled.show()