RBM33G has a GPIO, which can be used, in particular, by connecting script execution to them. Could respected gurus explain in detail how best to use this? Or is it related only to KNOT ?
As far as I understand, you can connect analog outputs of equipment to PIN 2,3 and use a script to read the voltage value on them
But it’s not clear how to get the voltage value other than the print command
/iot gpio analog print
is there a get command ?
Does get exist here ?
/iot gpio analog get pin2 value
?
Yes, that seems right.
PIN 4-6 are digital, open collector type. Moreover, they seem to be customizable for both input and output.
/iot gpio digital set pin4 direction=output ?
/iot gpio digital set pin4 output=0
You can also assign script execution to the corresponding PIN:
/iot gpio digital set pin5 script=script1
/iot gpio digital set pin5 script="/system .."
And accordingly, the state of logical 1 or logical zero can be read from PINs configured for input:
/iot gpio digital get pin5 input
Accordingly, you can build script logic on this:
if ([/iot gpio digital get pin5 input] = "0") do={}
Note: In POS 6 /system gpio is used, in POS 7 /iot gpio submenu
I would ask respected gurus to correct my mistakes and put the mess in my head in order…