from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
from time import sleep
import gfx
i2c = I2C(scl=Pin(22), sda=Pin(21), freq=400000)
oled = SSD1306_I2C(128, 64, i2c)
gfx = gfx.GFX(128, 64, oled.pixel)
while True:
oled.fill(1)
oled.text(" Aryan Sharma!", 5, 20, 0)
oled.text("MCA 14 Mar 2024.", 0, 35, 0)
oled.show()
sleep(2)
oled.fill(0) # Clear the display
gfx.line(0, 0, 127, 63, 1) # Draw a line from top-left to bottom-right
gfx.rect(10, 10, 50, 30, 1) # Draw a rectangle
gfx.fill_rect(70, 10, 30, 20, 1) # Draw a filled rectangle
gfx.circle(100, 40, 10, 1) # Draw a circle
gfx.fill_circle(30, 50, 8, 1) # Draw a filled circle
oled.show()
sleep(2)