IO[n] MODE [mode]
IO[n] MODE ?
mode
:DIN
DOUT
AIN
AOUT
PWM
-IO[n]
followed by MODE
followed by the current mode.IO[n] INT [trigger]
IO[n] INT ?
trigger
:RISE
FALL
CHANGE
NONE
-IO[n]
followed by INT
followed by the current interrupt configuration.IO[n] VALUE [val]
IO[n] VALUE ?
val
:-IO[n]
followed by VALUE
followed by the current value of the IO pin, which depends on the current operating mode of the pin.IO[n] VALUE 0
IO[n] VALUE 2512 2.02V
IO[n] VALUE 512 50%
IO[n] PWMFREQ [frequency]
IO[n] PWMFREQ ?
frequency
, which can be from 750Hz to 80000Hz.-IO[n]
followed by PWMFREQ
followed by the currently configured PWM frequency.