#GPIO-STEP␠HwGpioNumber,NumOfStep␍
Get:
Get I/O port current
step
#GPIO-STEP?␠HwGpioNumber␍
HwGpioNumber,NumOfStep,CurrentStep
HwGpioNum – I/O port number: 1–8
NumOfStep – the maximum number of steps: for analog = 0–255, for digital= 2 (see notes)
CurrentStep – the actual step depending on the measured voltage
The Set command can only be used for analog.
In digital in mode the response is 2 and the current state: 0, 1
In analog mode the response is 0 to [NumOfStep minus 1].
In digital out mode an error is returned.
Set I/O port number 1 number of steps to 5:
#GPIO-STEP
Set HW GPIO voltage
levels
#GPIO-THR␠HwGpioNumber,LowLevel,HighLevel␍
Get:
Get HW GPIO voltage
levels that were set
HwGpioNumber,LowLevel,HighLevel
HwGpioNum – I/O port number:
LowLevel – voltage: 500 to 28000 millivolts
HighLevel
– voltage: 2000 to 30000 millivolts or 2000 to 4000 when pullup is enabled.
This command is only relevant for digital input. There must be a minimum of 800 millivolts between the low
and the high levels.
Set I/O port number 1 voltage low level to 500 millivolts and high level to 2000 millivolts:
#GPIO-THR 1,500,2000<CR>