print("Let's make OLED display sentences")
print("Date : 18/4/24")
print ("by : Nazmi")
#Import all libraries
import oled_libary #this is oled library
from machine import Pin, SoftI2C
#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()
skrin = oled_libary.SSD1306_I2C(width=128, height=64, i2c=oled_pin)
#Main program
#By default colour code is white (1)
skrin.fill(0)
skrin.text("Hello babe!", 5, 10, 1)
skrin.text("love u", 30, 20, 1)
skrin.text("happy thursday", 15, 30, 1)
skrin.show()