print("We gonna light up OLED")
print('Date: 21/11/2023')
print('By RAZIQ')
#Import all necessary libraries
from machine import Pin, SoftI2C
import SSD1306 #This is OLED Library
#Pin decleration
oled = SoftI2C(scl=Pin(22), sda=Pin(21))
oled_width = 128
oled_height = 64
#Let's create OLD as an OBJECT
oled = SSD1306.SSD1306_I2C(width=oled_width, height=oled_height, i2c=oled) #library name.class name()
#Parameter declaration
#Main Program
# 1 is code for white, 0 is code for black
oled.fill(0)
oled.text('oled delo', 1, 10, 1) #text, column, row, colour code
oled.text('oled delo', 2, 20, 1)
oled.show()