#GPIO-CFG␠HwGpioNumber,HwGpioType,HwGpioDir,Pullup␍
Get:
Get I/O port
configuration
HwGpioNum,HwGpioType,HwGpioDir
HwGpioNum – I/O port number: 1–8
HwGpioType – I/O port type: 0 (analog), 1 (digital)
HwGpioDir – I/O port direction: 0 (input), 1 (output)
Pullup –
Set configuration for I/O port number 1 to digital input with the pull-up enabled:
#GPIO-CFG 1,1,0,1<CR>
HwGpioNum – I/O port number (1–8)
HwGpioState – I/O port state – See note below
GPIO-STATE? can only be sent in digital mode and the answer is 0=Low, 1=High. In analog mode an error
message is sent.
GPIO-STATE can only be sent in digital out mode and the parameter is 0=Low, 1=High. In all other modes
an error message is sent.
The device uses this command to notify the user of whenever there is a change regarding the state.
Set state for digital I/O port number 1 to high:
#GPIO-STATE 1,1<CR>