5.8 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

returns 0 on success and 1 on error.

Usage Example

To configure GPIO.

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

Last updated