Figure 6-3
Setting the output to High
Digital Inputs
The most common use of digital inputs is to detect when a switch has been closed. A
digital input can either be on or off. If the voltage at the input is less than 2.5V (halfway to
5V), it will be 0 (off), and if it is above 2.5V, it will be 1 (on).
Disconnect your multimeter and upload the sketch 6-02 onto your Arduino board:
As with using an output, you need to tell the Arduino in the
Dostları ilə paylaş: