Question: please answer this C # sharp arduino short test and explain the code with comments and follow the instructions set and show the question working


Tuning visual feedback The besc objecthe of this assieninent is to use 5 witch input to change between 3 trpes of segnal that are dieplayed on the Bar Graph (Sawtooth, Count-up and Count-down. The switch input must be read at every point t and move to the next sienal immediately. The time between 11 and n, etc should be set by the value of the Potentiometer and should vary between 10ms and 1006ms: For an additional 10 maris explain why the switch input can become unreliable at slow For all code sections, marks will be deducted for bad readability (e.g. missing or mismatching comments, poor variable names, bad indentation, untecognised coding style, etc.), inappropriate, use of global variables, unnecessary code repetition, incorrect behoviour, or failure to follow requirements of the lab question. General marks are also lost if the submission document instructions are not followed. Marks will be awarded for good design decisions and using the oppropriate features of C to achieve the programme goals. Hints: - Use separate functions for the different signals and other tasks. - Use variables at the Loop() level to record the state and pass the relevant state to the functions as parameters. Do not use global variables. - Do use global constants and arrays of constants to iterate between states, signals and along the elements of the bar graph. - The map() function will be useful for the Potentiometer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
