Arduino Toolkit - @arduino/writeDigitalPin
- : writeDigitalPin
(ar, pin, value)
Write digital value to a digital I/O pin.
Inputs
ar - connected arduino object.
pin - string name of the pin to write to.
value - the logical value (0, 1, true false) to write to the pin.
If pin was unconfigured before using, pin is set into digital mode.
Example
a = arduino(); writeDigitalPin(a,'D5',1);
See also: arduino, readDigitalPin.