44
Smartcat (BL2100)
Sets the state of a digital output (
OUT00–OUT15)
.
Remember to call the
brdInit
and the
digOutConfig
functions before executing this function.
A runtime error will occur for the following conditions:
1.
channel
or
value
out of range.
2.
brdInit
or
digOutConfig
was not executed before executing
digOut
.
PARAMETERS
channel
is the output channel number (0–15, 0–23 if IN16–IN23 are configured as digital outputs).
value
is the output value (0 or 1).
SEE ALSO
brdInit, digIn, digOutConfig
Reads the state of an input channel.
A run-time error will occur for the following conditions:
1.
channel
out of range.
2.
brdInit
was not executed before executing
digIn
.
PARAMETER
channel
is the input channel number (0–23)
RETURN VALUE
The state of the input (0 or 1).
SEE ALSO
brdInit, digOut
void digOut(int channel, int value);
int digIn(int channel);
Summary of Contents for Smartcat
Page 6: ...Smartcat BL2100 ...
Page 14: ...8 Smartcat BL2100 ...
Page 60: ...54 Smartcat BL2100 ...
Page 78: ...72 Smartcat BL2100 ...
Page 84: ...78 Smartcat BL2100 ...
Page 118: ...112 Smartcat BL2100 ...
Page 124: ...118 Smartcat BL2100 ...
Page 132: ...126 Smartcat BL2100 ...
Page 134: ......