NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void SetOutput ( byte  outputs,
byte  field1,
variant  val1,
  ...,
byte  fieldN,
variant  valN 
)
inline

Set output fields.

Set the specified field of the outputs to the value provided. The field must be a valid output field constant. This function takes a variable number of field/value pairs.

Parameters
outputsDesired output ports. Can be a constant or a variable, see Output port constants. For multiple outputs at the same time you need to add single output port values into a byte array and pass the array instead of a single numeric value.
field1The 1st output port field to access, this should be a constant, see Output field constants.
val1Value to set for the 1st field.
fieldNThe Nth output port field to access, this should be a constant, see Output field constants.
valNThe value to set for the Nth field.
Examples:
ex_setoutput.nxc.