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
moacon/eportin/index.txt · Last modified: by 127.0.0.1
