Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

In this section, you will write a program to show a rotating banner on the LCD screen. Every 300 milliseconds, the text "Microcontrollers are lots of fun!" should move one position to the left. This banner should repeat indefinitely. Edit your helloworld project, as it provides a good starting point.

Here are the requirements of the output:

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' appears on the right side of Line 1. The following characters appear one by one every 0.3 second.

After the 20th letter appears, new characters appear one by one every 0.3 second and push the old letters off the LCD screen.

After the last character '!' appears on the right, the message continues shifting to the left. Every 300 milliseconds the leftmost letter is pushed out until the screen is completely cleared.

After the screen is cleared for 0.3 second, repeat the whole procedure again. The banner should repeat forever until the board is turned off.

You need to write your program so that the message can be changed quickly. The TA will ask you to display a new message during the demo. You should only need to make a minor change to your program and compile.

There are three functions that have been written for you that will help:

timer_waitMillis(uint32_t millis): Delay the program execution for 'millis' milliseconds.

lcd_init(): Initializes the IO ports to communicate with the LCD controller; clears the screen.

lcd_printf(const char *fmt, ...): Clears the screen and displays text. See documentation on printf.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93116452

Have any Question?


Related Questions in Computer Engineering

Question what is the relationship between programming and

Question : What is the relationship between programming and networking, and do you think that the United States has lost some of its economic advantage in these fields to other parts of the world?

Question social networks facebook twitter linkedin etc are

Question : Social Networks (Facebook, Twitter, LinkedIn, etc.) are widely used today. Describe how this technology can be used effectively in a business setting. Are there any drawbacks or limitations to using social net ...

Two contract offers are made to you the first contract

Two contract offers are made to you. The first contract offers $10,000 at the end of each year for the next five years and then $20,000 per year for the following 10 years. The second offer pays 10 payments, starting wit ...

String firstnamearraychar gradearrayassuming that this text

String firstName[ARRAY]; char grade[ARRAY]; Assuming that this text file is already inputted into the program. Write a loop that will display the students that have "A" or "B" next to their names. If the stuent has a "A" ...

Number of cars average trvel time between a and b using

Number of cars Average trvel time between A and B using route 1 1 10 2 10 3 10 4 11 5 12 6 14 7 18 8 24 Alternative route 2: average travel time is 18 minutes(no matter how many cars are using it) How many cars will take ...

Suppose that you have 5000 and you are contemplating the

Suppose that you have $5000 and you are contemplating the purchase of two investments, IBM and Walgreen's. One year from now, IBM can be sold at $ X per dollar invested, and Walgreen's can be sold for $ Y per dollar inve ...

A real estate office manages 50 apartment units when the

A real estate office manages 50 apartment units. When the rent is $550 per month, all units are occupied. However, for each $55 increase in rent per month, one unit becomes vacant. How many units should be rented to maxi ...

A cell phone company offers 15 different voice packages and

A cell phone company offers 15 different voice packages and 15 different data packages. Of those, 6 packages include both voice and data. How many ways are there to choose either voice or data, but not both?

Please discuss the followingas demand increased for these

Please discuss the following: As demand increased for these mortgage backed securities, lenders reacted by relaxing their approval standards to increase production. No longer were "all" borrowers required to document the ...

If you set a lenient significance level eg 20 what is the

If you set a lenient significance level (e.g., .20), what is the effect on the probability of a Type I and Type II error (answer in terms of high or low probability for each Type of error)?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As