Question: Part 1 Write a program to run on your Arduino and PortMaster board that will sequentially turn on and off the LED segments, so it

Part 1 Write a program to run on your Arduino and PortMaster board that will sequentially turn on and off the LED segments, so it resembles Cylon eyes (https://youtu.be/UajcgzK2shQ). Use the millis() construct rather than delay(). The traverse from one side to the other should take about 1 second.

Part 2 Modify your code from Problem 1, so that pressing and holding SW10 will cause the speed of traverse to increase continuously; pressing and holding SW11 will cause the speed of traverse to continually decrease; and pressing and holding both button switches will cause LED segments 9 and 0 to blink on and off continuously at a rate of two on-off cycles per second.

Please make sure to provide comments explaing the code!

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!