
digitalWrite(): digital functions in arduino programming (part 3)
digitalWrite(): Just as the purpose of the digitalRead() is to read a value of high or low of an input, the purpose of the digitalWrite function is to assign a value of HIGH or LOW to a digital pin, specifically, an output. Effectively, they are opposites. If a pin has been configured to be an output in the setup of the code with the pinMode function, its voltage in the circuit will be set to the corresponding value: 5V for HIGH (3.3V on 3.3V boards) and 0V for LOW To use dig