extout2()

Controls an extout2 output port.

Syntax

extout2(pin, state)

Parameters

Parameter Type Description
pin Number The output pin number to control.
state Number `1` to turn on, `0` to turn off.

Return Value

Examples

Turn on external output pin 5

extout2(5, 1);

Turn off external output pin 3

extout2(3, 0);

See also

output
output_pwm
output_rc

mist
flood
spindle

extout1
extout2