Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Write a function lcd _ rotatingBanner ( . . . ) to display a rotating banner on the LCD screen. Every 3 0 0 milliseconds

Write a function lcd_rotatingBanner(...) to display a rotating banner on the LCD screen. Every 300
milliseconds (0.3 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 4 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 1 of the LCD screen. The
subsequent characters (i, then c, etc.) appear one-by-one every 0.3 seconds.
- After the 20th 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 0.3
seconds the leftmost letter is pushed out until the screen is completely cleared.
- After the screen is cleared for 0.3 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions