print("Let's send text to OLED display")
print('Date 23/11/2023')
print('Create by AFIQ')
'''
Additional Notes: Before using OLED, we need tot 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 display
'''
import oled_library
from machine import Pin, SoftI2C
pin_oled = SoftI2C(scl=Pin(22), sda=Pin(21))
#let create a name for our OLED screen
# name = library name, class name
screen = oled_library.SSD1306_I2C(width=128, height=64, i2c=pin_oled)
#let send text to our oled
#colour black = 0, white = 1
#y is row ==> line 1 = 0, line 2 = 10, line 3 = 20
#by default, the screen is in black colour
screen.fill(1)
screen.text('Boombastic!!!', 15, 20, 0)
screen.text('I am AFIQ', 20, 40, 0)
screen.show()