WEBVTT

00:00.210 --> 00:06.630
You will see working with digital teams as input beams is really easy once you have already understood

00:06.780 --> 00:09.340
how to work with them as output pins.

00:09.870 --> 00:11.740
But let's come back to our previous diagram.

00:12.240 --> 00:18.270
What you've seen from now is that in order to use a digital pin first, you need to set its load so

00:18.270 --> 00:20.520
you can choose to set the mood as output.

00:20.730 --> 00:28.230
And then you can either change the state with binary halo state of some of the digital pins you can

00:28.230 --> 00:29.460
set and unlock value.

00:29.970 --> 00:37.580
Now, if we come back to the part where we set the pins mold, the other option here is input.

00:37.950 --> 00:44.570
And when you choose input, then what you can do is to read a digital value from the component.

00:45.030 --> 00:49.230
This value will be binary, either high or low.

00:49.650 --> 00:56.640
If the voltage on the pin is close to five five-fold, you will get the value high and if the voltage

00:56.640 --> 01:00.510
is close to zero volt, you will get the value low.

01:00.810 --> 01:06.980
Note that you can't read analog values when using a digital pen as an input pen.

01:07.380 --> 01:14.970
Only high and low state, for example, with the push button in the next lesson, when you read the

01:14.970 --> 01:19.650
Penn State, you will directly know if the button is priced or not.

01:19.980 --> 01:26.930
And to know that you simply have to take it to the state for the pin is high for price are low.

01:26.940 --> 01:27.860
Followed, pressed.
