print("\n\tThis program will make OLED operate")
print("\tDate: 18/4/2024")
print("\tBy: mnafan")
#import libraries/module
from machine import Pin, SoftI2C
import library_oled
#Pin declaration
oled_pin = SoftI2C(scl=Pin(22), sda=Pin(21))
#Parameter declaration
#Create an object name for component with library
#Object name = libraryname.class_name()
display = library_oled.SSD1306_I2C(width=128, height=64, i2c=oled_pin, external_vcc=False)
#Main program
#Color code: 0 --> Black, 1 --> White
display.fill(1)
display.text("Saya", x=5, y=10, col=0)
display.text("lapar", x=5, y=30, col=0)
display.text("<3", x=5, y=50, col=0)
display.show()