print("OLED Display")
print("Date: 22/11/2023")
print("Created By Mark")
#Remarks: 4 STEPS to do before using OLED
#1. Import OLED library & I2C library
#2. Declare the I2C Pin ---> scl & sda
#3. Create an object name for your OLED
#4. You can use your OLED screen!
import oled_library
from machine import Pin, SoftI2C
Pin_scl_sda = SoftI2C(scl=Pin(22), sda=Pin(21))
#create an object name using OOP ( Object Oriented Programming )
#library name.class name
screen = oled_library.SSD1306_I2C(width=128, height=64, i2c=Pin_scl_sda)
#Lets start using OLED
screen.fill(1) # 0 for BLACK , 1 for WHITE
screen.text("MALAYSIA BOLEH",5, 10, 0)
screen.text("CONGRATS",30, 30, 0)
screen.show() # A must!! ( IF not the OLED will not display )