"""
from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
i2c=I2C(0,sda=Pin(0), scl=Pin(1), freq=400000)
oled = SSD1306_I2C(128, 64, i2c)
oled.text("Welcome To", 0, 0)
oled.text("TechnicalUpdate", 7, 10)
oled.text("Interfacing RPI PICO", 5, 20)
oled.text("with OLED", 22, 30)
oled.show()
oled.pixel(10,10,1)
oled.hline(2,3,4,1)
oled.vline(0, 0, 64, 1)
oled.line(0, 0, 128, 64, 1)
oled.rect(0, 0, 64, 32, 1)
#oled.fill_rect(0, 0, 64, 32, 1)
oled.show()
"""
from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
import time
WIDTH = 128
HEIGHT = 64
i2c=I2C(0, scl = Pin(1), sda=Pin(0),freq=400000)
display = SSD1306_I2C(WIDTH, HEIGHT, i2c)
display.fill(0)
display.show()
display.text("1234567890123456",0,0)
display.text("Line 2",0,14)
display.text("Line 3",0,28)
display.text("Line 4",0,42)
display.text("Line 5",0,56)
display.show()
time.sleep(1)
display.fill(0)