User Tools

Site Tools

한국어

moacon:eportblockin:index

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

moacon/eportblockin/index.txt · Last modified: 2016/04/14 11:07 (external edit)