Digital Output
“Digital” refers to the binary values of 1 or 0. A digital signal represents an on or off state. Digital output is used to turn devices on or off
Table of contents
Applications
Digital output is used in the following applications.
- Sending on/off control signals
- Turning low-powered devices such as LEDs on and off
Digital signals and values
Setting the pinMode
Digital pins on an Arduino can be configured for input or output. When configured for output, the digital pin can be set to HIGH
or LOW
. HIGH
represents being “on”. LOW
represents being “off”.
pinMode(11, OUTPUT);
Setting a digital output
digitalWrite(11, HIGH);