Changes

no edit summary
Line 186: Line 186:     
  cat /sys/devices/qpnp-vadc-8/mpp4_vadc  
 
  cat /sys/devices/qpnp-vadc-8/mpp4_vadc  
 +
 +
====One-wire====
 +
----
 +
 +
To read one-wire sensor data you will need to follow these steps:
 +
 +
Set one-wire sensor '''''value''''' to '''''1''''' using '''''ubus''''' command.
 +
 +
  ubus call ioman.gpio.onewire update '{"value":"1"}'
 +
 +
After that list out connected one-wire devices in directory '''''/sys/bus/w1/devices''''' with '''''ls''''' command.
 +
 +
  ls /sys/bus/w1/devices
 +
 +
Choose sensor that you want to know values off and using '''''cat''''' command read them from '''''/sys/bus/w1/devices/<device_name>/w1_slave''''' directory.
 +
 +
  cat /sys/bus/w1/devices/<device_name>/w1_slave
 +
 +
 
| <!--    for other TRB1    -->
 
| <!--    for other TRB1    -->
 
The <b>Status</b> page displays the current states of the device input and output:
 
The <b>Status</b> page displays the current states of the device input and output:

Navigation menu