Question: **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.

  1. Begin running with 00 on the LED display.
  2. 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.
  3. 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.
  4. If the program is switched to decrement mode, pressing the button causes the displayed value to decrement by 1. It doesnt go below 00.
  5. The program can be switched between the two modes at will.
  6. 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

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!