Package hw
Class IO

Public Method setOutput

static void setOutput(int outNo, int mode)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
outNo 0 ... 15 output number to be turned on/off
mode 0 ... 2 mode to set

This method is used for controlling outputs via the following modes:

mode
OUTPUT_SET_TO_OFF
OUTPUT_SET_TO_ON
OUTPUT_SET_TO_BLINK

Note

Example

IO.setOutput(3, IO.OUTPUT_SET_TO_BLINK);

After sending this command, output number 3 will blink (periodically toggles state after the interval specified by the blink frequency).

See also:

IO
IO.setMultipleOutputs(int, int)
IO.setOutputBlinkFrequency(int)