5.9 JNMMGPIORead

This function reads the data value from a specified GPIO port.

BYTE JNMMGPIORead(int Port, int *data);

Usage Example

To read GPIO port.

inport = 0;          //port A
JNMMGPIORead(inport,&input_byte);
printf("data = %d",*input_byte);

Last updated