Digital Write

The Arduino digitalWrite function allows to write digital logical values in an output pin of an Arduino card. So, this function requires that the PIN has been declared as output previously. To begin with, this Arduino language element requires two input parameters. The first is the PIN number (0-13 for an Arduino one R3) and the second is the logical condition (HIGH or LOW).We can vary the intensity of the LED through the functions high and low, allowing us a simpler and easier control

Video Example