To be able to fully control an energy, you need first to understand how to use digital beings on Arduino,
so on the outer all that, you have two kinds of pains to control the hardware components, digital
things here in orange and analog in green.
In this section, we are going to focus only on digital themes and we will see another piece after that.
On the other, you have 14 digital things.
As you can see here, the teens are represented by a number from zero to 13 on different out in the
world, like adeno nano omnia.
You may have a different layout for things or even a different amount of digital things, but if you
understand how digital things are working with this Arduino example, then it will be very easy for
you to work with any of the in the world.
So a digital thing can be used either to activate a component such as an entity like we did before,
or to read from a sensor, for example, a push button, know how to work with digital things.
Well, the first thing you need to do is to set a mode for the PIN.
You can choose either input output mode in this lesson, because we are working with an entity, we
would only focus on the output mode.
And then once the PIN is set as an output pin, you can change its state so that you have two options,
high or low.
This is a binary state.
I mean that the output will be fold because that is what the Audi delivers and zero means zero.
So if you put an entity on digital bean and said to Penn State to high, the entity will be powered
on.
Then if you set the stage to load, the energy will simply be full of.