User Tools

Site Tools


raspberry:raspberry-gpio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
raspberry:raspberry-gpio [2024/04/23 15:43] oscarraspberry:raspberry-gpio [2024/04/23 16:03] (current) oscar
Line 72: Line 72:
 </code> </code>
  
 +
 +  * **gpiodetect** – list all gpiochips present on the system, their names, labels and number of GPIO lines
 +  * **gpioinfo** – list all lines of specified gpiochips, their names, consumers, direction, active state and additional flags
 +  * **gpioget** – read values of specified GPIO lines
 +  * **gpioset** – set values of specified GPIO lines, potentially keep the lines exported and wait until timeout, user input or signal
 +  * **gpiofind** – find the gpiochip name and line offset given the line name
 +  * **gpiomon** – wait for events on GPIO lines, specify which events to watch, how many events to process before exiting or if the events should be reported to the console
 +
 +==== gpiodetect ====
 +The first column represents name of the chip (also the device node name). The second column (in square brackets) is the device label which is normally set by the GPIO driver (this will match the value of /sys/class/gpio/gpiochipX/label). The last column shows how many GPIO lines the chip has.
 <code> <code>
 # gpiodetect # gpiodetect
Line 146: Line 156:
   * [[https://www.auctoris.co.uk/2023/08/18/how-not-to-use-sysfs-for-gpio-on-a-raspberry-pi-how-you-should-do-it-in-2023/]]   * [[https://www.auctoris.co.uk/2023/08/18/how-not-to-use-sysfs-for-gpio-on-a-raspberry-pi-how-you-should-do-it-in-2023/]]
   * [[https://openwrt.org/docs/techref/hardware/port.gpio]]   * [[https://openwrt.org/docs/techref/hardware/port.gpio]]
-  * +  * [[https://www.thegoodpenguin.co.uk/blog/stop-using-sys-class-gpio-its-deprecated/]]
  
raspberry/raspberry-gpio.1713886981.txt.gz · Last modified: by oscar