############################
##### IMPORT LIBRARIES #####
############################
import machine
from utime import sleep
from lcd_api import LcdApi
from i2c_lcd import I2cLcd
############################
##### PIN CONFIGURATIONS ###
############################
# Configure the pin as output
# Replace the x with SDA Pin number here
sda = machine.Pin(21)
# Replace the y with SCL Pin number here
scl = machine.Pin(22)
# i2c configuration
i2c = machine.SoftI2C(sda=sda, scl=scl, freq=10000)
# Use i2c with devices
lcd = I2cLcd(i2c, 0x27, 2, 16)
############################
##### MAIN ROUTINE #########
############################
def main():
while True:
# Subroutine here
lcd_i2c()
############################
##### SUBROUTINE FOR RGB LED
############################
def lcd_i2c():
# Select coordinate (x, y)
lcd.move_to(0, 0)
lcd.putstr("Hello to ETC613!")
############################
##### EXECUTE MAIN ROUTINE
############################
if __name__ == "__main__":
main()