"""
| Grove OLED Pin | Raspberry Pi Pico Pin |
| -------------- | --------------------- |
| SDA | GP0 |
| SCL | GP1 |
| VCC | 3.3V |
| GND | GND |
"""
from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
import time
from drawing_a_shape import draw_icon
from images import smiley, star, checkmark, facebook
i2c = I2C(0, scl=Pin(1), sda=Pin(0), freq=4000000)
print("i2c : ", i2c.scan())
oled = SSD1306_I2C(126, 64, i2c)
time.sleep(1)
oled.fill(0)
oled.text("Hello Wokwi", 0, 0)
oled.text("SSD1306 OLED", 0, 10)
oled.rect(0, 20, 120, 40, 1)
oled.show()
draw_icon(data=facebook, oled=oled)