print("We gonna light up OLED!")
print("Date: 21/11/2023")
print("By: MMDJ")
#import all necessary libraries
from machine import Pin, SoftI2C
import SSD1306 #This is OLED library
#Pin declaration
i2c_oled = SoftI2C(scl=Pin(22), sda=Pin(21))
OLED_width = 128
OLED_height = 64
#Let's create OLED as an OBJECT
skrin = SSD1306.SSD1306_I2C(width=OLED_width, height=OLED_height, i2c=i2c_oled) #library name.class name()
#Main program
# ! is code for WHITE, 0 is code for BLACK
skrin.fill(1)
skrin.text("Susah gila OLED", 2, 20, 0) #Text, column,
skrin.text("OLED nohhh...", 10, 40, 0)
skrin.show()