Answered You can hire a professional tutor to get the answer.

QUESTION

No idea how to write code for this You are given a system that consists of 8 LED displays and two toggle switches (the DAQ hardware module or the...

Help please! No idea how to write code for thisYou are given a system that consists of 8 LED displays and two toggle switches (the DAQ hardware module or the simulator). The 8 LED displaysare arranged in a row and will be called an LED screen. You are to write a program in C that displays a scrolling message on the LED screen.This option for the lab is divided up into two parts: a required part, and an optional part (for additional bonus marks). Both parts will display ascrolling message on the LED screen. The optional part also uses two switches to control how the message is scrolled and gives an option to theuser to select the message.Writing the Message to DisplayYou can choose the message that you want to display, but please note the following: ideally your message should be a short word or phrase. the message should be at least 4 characters long, where at least 3 of the characters should be English letters (not just digits, etc). there is no maximum length on your message as long as it can be used efficiently to test the functionality of the program as described,but shorter messages are preferred and will probably be easier to test. your message does not have to be unique; it is OK if you happen to have the same message as somebody else. note that not all English letters can be displayed, so you may need to mix upper and lower case letters to have a meaningful word. Donot use a word that has characters that you cannot display on the 7-segment displays. for each letter, you will have to determine the data value to write to the LED display in order to display the character. In your program you may use one particular message only. However, your algorithm should not be solely dependent on the message it isdisplaying (i.e. it must be algorithmic and it must be possible to change the message).One way to do this is to store the data values for each character in a message array. Note that your message array would not normally be aString. Problem - Required PartIn this part you only use the LED screen. The LED screen consists of 8 LED displays. The first display on the right is at position #0 and the lastdisplay on the left is at position #7.Your program should update the LED screen once a second as follows: When your program first starts it should display the first character of your message, in the right-most position of the LED display(position 0). After one second it should update the display by scrolling your message one character to the left (i.e. first character at position 1, secondcharacter at position 0). Your program should continue to update the display by scrolling your message one character per second until it has completely scrolledoff the left end of the display. Once your message has scrolled off the display, your program should start again at the first step above, i.e. first character at position 0. Your program should continue this process until you quit the program. A) This part uses both the LED screen as well as the two switches. The two switches are connected to input channels numbered 0 and 1. Switch #0 is connected to channel #0, and is called the DIRECTION switch. Switch #1 is connected to channel #1 and is called the SPEED switch.For this part, your program should operate as described above with the following additions: When the SPEED switch is off, the display should be updated once every second. When the SPEED switch is on, the display should be updated onceevery 0.5 seconds. When the DIRECTION switch is off, the message should scroll to the left (as in the required part above). When the DIRECTION switch is on, the displayshould scroll to the right. When scrolling to the right, the operation is simply the reverse of scrolling to the left.B) At the very beginning, the program should ask the user to choose between two pre-determined messages (of different sizes). Then yourprogram will use the message user selected to display. Note this selection is done once at the very beginning when the program is run (No needfor provision to change it after the message is selected). The two messages must be of two different sizes.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question