User manual
12Page
Velleman Projects
3.5
InOutMode
Syntax
void InOutMode(int CardAddress, int HighNibble, int LowNibble);
Parameters
CardAddress: The address of previously opened card.
LowNibble: 0: the digital I/O terminals 1 to 4 are outputs
LowNibble: 1: the digital I/O terminals 1 to 4 are inputs.
HighNibble: 0: the digital I/O terminals 5 to 8 are outputs
HighNibble: 1: the digital I/O terminals 5 to 8 are inputs.
Description
Set the digital terminals either inputs or outputs.
Example
InOutMode(CardAddress, 0, 0);
// All the digital I/O pins of card are set to outputs.