Skip to content
/ LCD Public

Creates a functional LCD display which scrolls a message on the top and bottom line of the screen.

Notifications You must be signed in to change notification settings

JennaeN/LCD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LCD

Creates a functional LCD display which scrolls a message on the top and bottom line of the screen.

API - LCD.h

My Application Program Interface connects the following LCD functions to main.c:

void initSPI(); void LCDinit(); void LCDclr(); void cursorToLineOne(); void cursorToLineTwo(); int pollButton(); void writeDatatByte(char dataByte); void writeString(char * string); void scrollString(char * string1, char * string2);

USAGE -LCD.h connects my main.c and my LCD.c. It initializes the SPI and the LCD screen, clears the LCD screens, and then prints two messages to the screen which scroll across the LCD repetitively until the program is terminated.

The first line of scrolling text is "ECE382 is my favorite class!" The second line of scrolling text is "Learn from yesterday, live for today, hope for tomorrow." This line was broken down into three separate lines of text which can be chosen by a push button. The pushButton was initialized in the 'pollButton' function. After prompting the user to press a button 1-3, the first line of scrolling text will be followed by a part of the second line of scrolling text.

About

Creates a functional LCD display which scrolls a message on the top and bottom line of the screen.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published