print("OLED display!")
print("Date : 22/11/2023")
print("By : M4trep")
# 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 screen
# 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
skrin = OLED_library.SSD1306_I2C(width=128, height=64, i2c=Pin_scl_sda)
# Let's start using OLED
skrin.fill(1) # 0 = black, 1 = white
skrin.text("AMIR PARUT 3D",0, 10, 0)
skrin.text("AZRI CUTE",0, 30, 0)
skrin.show() # this mark is a must