Skip to content

Danielerikrust/LCD-20x4-Feed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

LCD-20x4-Feed

LCD Feed

Scrolling 20x4 LCD Feed for Micropython and Rpi Pico

This is written for the Freenove I2C LCD 2004 & I2C LCD 1602 modules. It utilizes the code provided by Freenove, except condensed into a single file with the addition of my LCD Feed functions.

https://freenove.com/fnk0079/

Installation

Copy LCD_Display into your Pico /lib directory.

Add the following lines to main.py:

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")

About

Feed-based 20x4 LCD for Micropython and Pico

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages