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. /* ;;# /*Iris \\* / Patron \\ Neuron ;;# */ ---- {{ :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 Base OS, you must install and configure OWFS. If the OS has Evok preinstalled, OWFS will be 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-plc/by-sys/DO1.1/value Setting the **DO** to the closed state: echo 1 > /run/unipi-plc/by-sys/DO1.1/value ---- **DI** status reading: cat /run/unipi-plc/by-sys/DI1.1/value Status reading of all first section **DI**'s: cat /run/unipi-plc/by-sys/DI1.*/value Status reading of all available **DI** units: cat /run/unipi-plc/by-sys/DI[1-3].*/value {{page>en:sw:02-apis:04-sysfs:docu-deb13-hidden}}