print("Let's send text to OLED display")
print("Date: 23/11/2023")
print("Created by Hakeem")
'''
Additional Notes: Before using OLED, we need to do the following 4 STEP
1. Import library for OLED & I2C(SCL & SDA)
2. Declare pins for I2C(SCL & SDA)
3. Create an object NAME for your OLED screen
4. OLED will be ready for use
'''
import Oled_library
from machine import Pin, SoftI2C
pin_oled = SoftI2C(scl=Pin(22), sda=Pin(21))
#Lets create a name for our OLED screen
# name = library name . class name
skrin = Oled_library.SSD1306_I2C(width=128, height=64, i2c=pin_oled)
#Let's send text to our OLED!
#color black - 0, white - 1
#y is row --> line 1 - 0, line 2 - 10, line 3 - 20
#By default, the screen is in black color
skrin.fill(1)
skrin.text("HYE ELIA <3", 15, 20, 0)
skrin.text("I MISS YOU", 10, 40, 0)
skrin.show()