Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Danielerikrust authored Feb 25, 2023
1 parent 894d70f commit 957f2ec
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions mainLCD.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import time
from machine import I2C, Pin, UART
from LCD_Display import LcdApi, I2CLcd

"""LCD Section"""
i2c = I2C(0, sda=Pin(20), scl=Pin(21), freq=400000) #GPIO 20 & 21 have no other function but I2C
devices = i2c.scan()
if devices != []:
lcd = I2CLcd(i2c, devices[0], 4, 20)

lcd.topdata("THIS REMAINS STATIC")
time.sleep(1)
lcd.feed("^ These")
time.sleep(1)
lcd.feed("^^ Lines")
time.sleep(1)
lcd.feed("^^^ Feed")
time.sleep(1)
lcd.feed("^^^^ Up")
time.sleep(1)
lcd.feed("as you add new ones")

0 comments on commit 957f2ec

Please sign in to comment.