Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART 3 : R OTATING B ANNER Write a function lcd _ rotatingBanner ( . . . ) to display a rotating banner on the

PART 3: R OTATING B ANNER
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.
Three functions that have been written for you that will help are:
1. timer_waitMillis(uint32_t millis): Delay the program execution for 'millis' milliseconds.
2. lcd_init(): Initializes the I/O ports to communicate with the LCD controller; clears the screen.
3. lcd_printf(const char *format,...): Clears the screen and displays text.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions