-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
894d70f
commit 957f2ec
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |