3.3.2.2 GPIO Pin Setting
int IndoorTouch.GPIOSet(int pin, int value);
Pin is the PIN index, refer to 3.3.2.1 GPIO Pin Reading, and value is {0,1}.
The return value is as follows:
- IndoorTouch.RC_OK = 0;
- IndoorTouch.RC_ERR_CONN = -1; API daemon connection error
- IndoorTouch.RC_ERR_SYS = -6; system error (the value cannot be written, etc.)
- IndoorTouch.RC_ERR_DENIED = -7; GPIO does not exist or is unwriteable
- IndoorTouch.RC_ERR_LOCKED = -8; locked by another process via GPIOLock