Question: Arduino Code C + + 1 ) The LCD display can show two rows of characters, 1 6 characters long. Write a program which displays

Arduino Code C++
1) The LCD display can show two rows of characters, 16 characters long. Write a program which displays the letter f in the Lower-Left corner (0,1) of the display for 0.75 seconds and then erases the letter f. Right away, the letter f should be displayed over one, that would be (1,1). Again, after 0.75 seconds the f must be erased and placed over one more column (2,1), for 0.75 seconds. Etc, and on down the line. When f reaches the last column, the program should repeat from the first column lower row. Only one "f" is displayed at a time. You must use a while () loop to move the letter f.
2) Modify your program from part 1 so that the "f" is displayed on row 1 and row 0 alternately: (0,1) then (1,0) then (2,1), then (3,0) on down the line. Each time the "f" should be displayed for 0.75 seconds, except in the last position (15,0), where the "f" should remain visible for 1.5 seconds before the display is cleared and the and the display should remain clear until the Arduino is reset.
3) Modify your program from part 2 so that now once the f reaches the last position, (15,0), it becomes an e bouncing back from (15,1) to (0,0), pausing for 0.25 seconds in each position. The program will then start with "f" again.
4) Modify your program from part 3 so that the speaker plays a 200Hz sound for 0.25 seconds when the first f is displayed, and the frequency increases by 25 Hz for each e displayed (200,225,250...). When the es start displaying, the sound should keep increasing in frequency by 25 Hz for each e displayed. The fs should be displayed for 0.75 seconds, and the es for 0.25 seconds as in part 3.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!