WEBVTT

00:00.300 --> 00:07.470
Great, you can work with the digital and analog pins of your in the world in the following lessons,

00:07.620 --> 00:13.680
you will add more elegance to your secrets and you will practice with a few activities on everything

00:13.680 --> 00:18.830
you have seen before, digital beans and other beans, priming content, etc..

00:19.230 --> 00:26.340
And before we dive in this practice section, here is a quick recap on digital and another beanz.

00:26.610 --> 00:32.150
You can also download a PDF as an additional resource to the schools.

00:32.550 --> 00:38.190
Keep this PDF on the side, which will help you clear any dolloped you may have when you write your

00:38.190 --> 00:40.260
own code for your own project.

00:40.590 --> 00:48.250
So to recap on the audio, we know you get 14 digital teens from number zero to 13.

00:48.660 --> 00:57.990
You also get six beans from the eight zero two eight five on different ideas about the layout and number

00:57.990 --> 01:00.060
of beans may vary.

01:00.600 --> 01:05.460
Now for digital beans, first you need to choose a mode for the bean.

01:05.940 --> 01:13.470
Output means that you will write data to an aggregator and input means that you will read data from

01:13.470 --> 01:14.060
the center.

01:14.520 --> 01:21.550
If you choose outputs, then depending on the bean, you have two choices for all digital beans.

01:21.810 --> 01:28.610
You can simply write a digital data, which means you set a binary state either high or low.

01:29.280 --> 01:35.820
If the pin has a value and functionality, you can either use it with a binary state or you can also

01:35.820 --> 01:40.740
send an analog value from zero to two hundred fifty five.

01:41.640 --> 01:43.860
So that is for the output mode.

01:44.400 --> 01:49.940
For the input mode of a digital pin, you would read a binary state from senseor.

01:50.430 --> 01:55.920
The value you would get will be either high or low, and that's it for digital beats.

01:57.000 --> 02:04.650
For either of these, you can decide to use the pen as an input pin, which is the default mode in order

02:04.650 --> 02:11.560
to read a of data from an analog sensor so that the remote is already selected for you.

02:11.820 --> 02:13.110
No need to set it.

02:13.380 --> 02:19.710
And then in your code, you will read values which are in the range between zero and one thousand twenty

02:19.710 --> 02:20.010
three.

02:21.190 --> 02:28.930
The other option you have for other things is to use them as classic digital pins, but in this case,

02:29.200 --> 02:34.510
don't forget to send a mode first and then use the other as a digital thing.

02:35.200 --> 02:35.740
All right.

02:35.740 --> 02:37.430
That's pretty much it for the recap.

02:37.750 --> 02:39.430
Now let's practice more.
