Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PART 3 : R OTATING B ANNER Write a function lcd _ rotatingBanner ( . . . ) to display a rotating banner on the
PART : R OTATING B ANNER
Write a function lcdrotatingBanner to display a rotating banner on the LCD screen. Every
milliseconds seconds the text Microcontrollers are lots of fun! should move one position to the
left. The banner should repeat indefinitely. Duplicate and edit the helloworld project, as it provides a
good starting point.
The program should adhere to the following requirements:
Only the first line of the LCD screen should be used. The LCD screen has lines. The second line
should be blank all the time.
At the beginning, the first letter M should appear on the right side of line of the LCD screen. The
subsequent characters i then c etc. appear onebyone every seconds.
After the th letter appears filling the first line of the LCD screen the remaining characters of the
message push the old letters off the LCD screen to the left.
After the last character appears on the right, the message continues shifting to the left. Every
seconds the leftmost letter is pushed out until the screen is completely cleared.
After the screen is cleared for seconds, repeat the entire banner again.
The banner should repeat forever until the board is turned off
The program should be written so that only the message is modified in the code.
Three functions that have been written for you that will help are:
timerwaitMillisuintt millis: Delay the program execution for 'millis' milliseconds.
lcdinit: Initializes the IO ports to communicate with the LCD controller; clears the screen.
lcdprintfconst char format: Clears the screen and displays text.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started