User Tools

Site Tools

한국어

moacon:eportin:index

eportIn

u8 eportIn (u16 eportNumber)

eportNumber : The expansion port number from which to read
returns the input state of eportNumber

Reads the input state of the given expansion port, eportNumber. If the voltage on the port is less than the module's Off Level, portIn returns 0 (Off). If the voltage on the port is greater the module's On Level, portIn returns 1 (On).

u8 i = eportIn(0x10);    // Reads the input state of port 0x10 and stores the result in variable i

go MOACON home

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