Debian:
====== Sysfs ====== The SysFS driver is part of the kernel module for Unipi units with inputs and outputs and provides easy file-based access to all inputs and outputs. ;;# Patron \\ Neuron \\ Axon ;;# ---- {{ :files:img_warning-line_b.png?nolink |}} {{ :en:hw:08_safety-instructions_pseudo-ISO-7010-info.png?nolink |(i)}} **Note:** \\ To use 1-Wire on a Unipi unit with OpenSource OS, you must install and configure OWFS. In the case of an OS with EVOK, OWFS is already installed. **Do not install OWFS for Mervis OS**! It uses an alternative method to work with 1-Wire and collisions could occur. ---- Check the following examples of reading and writing I/O to get started: \\ All files within SysFS can be accessed in the same way. \\ **DO** status reading: cat /run/unipi/io_group1/do_1_01/do_value Setting the **DO** to the closed state: echo 1 > /run/unipi/io_group1/do_1_01/do_value --- **DI** status reading: cat /run/unipi/io_group1/di_1_01/di_value Status reading of all first section **DI**'s: cat /run/unipi/io_group1/di_[1-3]_[0-9][0-9]/di_value Status reading of all available **DI** units: cat /run/unipi/io_group[1-3]/di_[1-3]_[0-9][0-9]/di_value {{page>en:sw:02-apis:04-sysfs:documentation-hidden}}