At the top of the sketch, you can see the command
pinMode
. You should use this
command for every pin that you are using in a project so that Arduino can configure the
electronics connected to that pin to be either an input or an output, as in the following
example:
As you might have guessed,
Dostları ilə paylaş: