m. Connect the Arduino to the computer and an LED/resistor to pin 2 I/O and ground.
n. Run the VI. Observe the operation. Press the stop button to stop the loop.
o. Save the file.
2. Read the state of an input pin and control an output based upon that state.
a. Add another Arduino Set Pin Mode VI in line with the first one.
b. Add a Arduino Digital Write VI following the Set Pin Mode VIs. This enables a built-in pull-up resistor in the Arduino.
c. Add an Arduino Digital Read Pin VI inside the loop in line with the Digital Write VI.
d. Add controls and constants as shown in the following image.