Answered step by step
Verified Expert Solution
Question
1 Approved Answer
**Please use TinkerCad to write the Arduino code & run the simulation. Thanks! Write a sketch that will allow any two-digit number to be written
**Please use TinkerCad to write the Arduino code & run the simulation. Thanks!
Write a sketch that will allow any two-digit number to be written to the LED display. You will have to parse the digits, write each digit individually (using your completed dispNum() function), and cycle through the digits fast enough to create the illusion of a continuous display.
- Begin running with 00 on the LED display.
- The behavior of the program can be changed through the serial communication window. If the command d is entered on the serial communication window, the message Counting Down is displayed in the serial monitor. This switches the program to decrement mode. If the command u is entered on the serial communication window, the message Counting Up is displayed in the serial monitor. This switches the program to increment mode.
- When the simulation starts, the program is in increment mode. When the button is pressed, the displayed value increments by 1. It doesnt go beyond 99.
- If the program is switched to decrement mode, pressing the button causes the displayed value to decrement by 1. It doesnt go below 00.
- The program can be switched between the two modes at will.
- If any other command is entered through the serial communication window, the message Unknown Command is displayed in the serial monitor.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started