1,003 bytes added
, 23 February
<pre>
ioman.gpio.dio0 - Configurable input/output (PIN3)
ioman.gpio.dio1 - Configurable input/output (PIN4)
</pre>
Call command <b>ubus call <i>value</i> status</b>:
root@Teltonika-{{{name}}}:~# ubus call ioman.gpio.dio0 status
{
"value": "0",
"direction": "in",
"bi_dir": false,
"invert_input": false
}
<ul>
<li><b>dio0</b> is configurable input / output:
<ul>
<li>"value": "<b>0</b>" means low level state.</li>
<li>"value": "<b>1</b>" means high level state.</li>
<li>"direction": "<b>in</b>" means input state.</li>
<li>"direction": "<b>out</b>" means output state.</li>
</ul>
</li>
</ul>
To change input settings, use the <i><b>update</i></b> command and specify a value:
ubus call ioman.gpio.dio0 update '{"value":"0"}'
ubus call ioman.gpio.dio0 update '{"value":"1"}'
ubus call ioman.gpio.dio0 update '{"direction":"in"}'
ubus call ioman.gpio.dio0 update '{"direction":"out"}'