eportBlockIn

u16 eportBlockIn (u8 eportBlockNumber)

eportBlockNumber : The expansion port block to read (0 through 7)
returns a bit array containing the input state of each port in portBlockNumber

Reads the input state of all ports in the given expansion port block, eportBlockNumber, returning a 16-bit array containing the input state of each of the 16 ports in the port block.

u8 i = eportBlockIn(1);    // Read input state of ports 0x10 ~ 0x1f

go MOACON home