5.12 JNMMGPIOWriteBit

This function outputs the desired value to a single bit. The other bits remain at their current values

BYTE JNMMGPIOWriteBit(int Port,int Bit,int data);

Name

Description

Port

0 - for port A,

1 - for port B

Bit

DIO line number, 0-15

Data

Value.

Return Value

returns 0 on success and 1 on error.

Usage Example

sscanf (input_buffer, "%d", &intBuf);
digital_val = intBuf;
JNMMGPIOWriteBit(port,bit,digital_val);

Last updated