Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

arduino uno problem 2 is what i am stuck on. Arsuino Uno Problem 2: Your second design problem for this lab is to modify the

image text in transcribedarduino uno
image text in transcribedproblem 2 is what i am stuck on. Arsuino Uno
Problem 2: Your second design problem for this lab is to modify the code you wrote for the first design problem to add the following functionality. The code in the main function needs to execute in three modes (0.1, and 2). In mode number 0. blink only the even PINS, in mode 1, blink only the odd pins, and in mode 2, blink all the pins. Hint: Your design should include an "if statement". The decision of which mode to run should be made at compile time. Design Problems: Problem 1: Your first design problem for this lab is to add three more LEDs to pins 8, 7 and 3 (so that you now have four LEDs in total). Write a code to blink each LED in sequence; that is, blink LED at pin 12 first, at pin 8 second, at pin 7 third and pin 3 last. The wait period in between each blink should be 0.75 seconds. This process should run continuously R T w Problem 2: Your second design problem for this lab is to modify the code you wrote for the first design problem to add the following functionality. The code in the main function needs to execute in three modes (0, 1, and 2). In mode number 0, blink only the even PINS, in mode 1, blink only the odd pins, and in mode 2, blink all the pins Hint: Your design should include an "if statement". The decision of which mode to run should be made at compile time

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions