DSCSAM_DIOConfig
This function sets the digital I/O port direction, pull and drive configuration for the selected port.
BYTE DSCSAM_DIOConfig(BYTE Port, BYTE Pull, BYTE Drive, BYTE Dir);
Name
Description
Port
0-1 for port A, B for Elton, Stevie & Jethro
0, 1 and 2 for port A, B and C for Ziggy
Pull
1 = pull up, 0 = pull down
Drive
1 = high, 0 = normal
Dir
1 = out, 0 = in
Return Value
Error code or 0.
Last updated
Was this helpful?