import machine
import ssd1306
# Define the I2C pins
i2c = machine.I2C(0, scl=machine.Pin(1), sda=machine.Pin(0), freq=400000)
# Create an OLED object
oled = ssd1306.SSD1306_I2C(128, 64, i2c)
# Clear the display
oled.fill(0)
oled.show()
# Display text
oled.text("Hello, OLED!", 0, 0)
oled.text("Raspberry Pi Pico W", 0, 20)
oled.show()