print("Let's make OLED Display sentences")
print("Date: 18/4/2024")
print("By: ASYRAAF")
#Import libraries/modules
import oled_library # this is OLED library
from machine import Pin, SoftI2C
from utime import sleep
#Pin declaration
oled_pin = SoftI2C(scl=Pin(22), sda=Pin(21))
#Parameter declaration
#Create an OBJECT name for module with library
#OBJECT name = library name.class name ()
screen = oled_library.SSD1306_I2C(width=128, height=64, i2c=oled_pin)
#main program
#By default color code is white (1)
screen.fill(0)
screen.text("Hello ASYRAAF!", 5, 0, 1) #(row,column,colorcode)
screen.text("Nice to meet you", 20, 10, 1)
screen.show()
sleep(5)
screen.invert(True)