print("Let's send text to OLED display")
print('Date: 23/11/2023')
print('Created by Putera')
'''
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))
#Let's create a name for our OLED screen
#name = library name . class name
skrin = oled_library.SSD1306_I2C(width=126, 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 screeen is in black color
skrin.fill(1)
skrin.text('HI EVERYONE!', 15, 20, 0)
skrin.text('I am PUTERA', 20, 40, 0)
skrin.show()