4.11 JNMMGPIOConfig

This function sets the digital I/O port direction for the selected port.

BYTE JNMMGPIOConfig(int Port, int Config);

Name

Description

Port

0 - for port A,

1 - for port B

Config

0 = input,

1 = output

Return Value

Error code or 0.

Usage Example

To configure GPIO.

input_port = 0; //0-port A,1-port B
config = 0;     //input mode
JNMMGPIOConfig(input_port,config);

Last updated