DSCSAM_DIOOutputBit
This function outputs a single bit to an output port. The other bits remain at their current values.
BYTE DSCSAM_DIOOutputBit(BYTE Port, BYTE Bit, BYTE Value);
Name
Description
Port
Port to write bit to: 0 = A, 1 = B for Elton, Stevie & Jethro
Port to write bit to: 0 = A, 1 = B, 2 = C for Ziggy
Bit
0-7 indicates the bit position in the port A and for port B the value should be 0-4 for Elton , Stevie & Jethro
0-7 indicates the bit position in the port A and for port B the value should be 0-4 and 0-7 for port C for Ziggy.
Value
0 or 1
Return Value
Error code or 0.
Last updated
Was this helpful?