from machine import Pin, SoftI2C
from ssd1306 import SSD1306_I2C
import time
i2c = SoftI2C(scl=Pin(27), sda=Pin(26), freq=400000)
oled = SSD1306_I2C(128, 64, i2c)
def clear_oled():
oled.fill(0)
oled.show()
oled.text("Hello, Wokwi!", 10, 0)
oled.text("Praktikum", 0, 20)
oled.text("Raspberry Pi Pico", 0, 40)
oled.show()
time.sleep(5)
clear_oled()