Answered step by step
Verified Expert Solution
Link Copied!

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.

  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

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

Students also viewed these Databases questions

Question

5. A review of the key behaviors is included.

Answered: 1 week ago