Skip to main content

Rpi Gpio Inventory

@aaronge/rpi-gpio-inventoryv2026.08.26.1· 1mo agoMODELS
01README

Read-only snapshot of Raspberry Pi GPIO pin state (function, level, pull, consumer) via pinctrl/libgpiod, as a typed, versioned Swamp model — tracks what changed on the header once HATs/sensors are attached. Never sets a pin.

02Models1
@aaronge/rpi-gpio-inventoryv2026.08.26.1rpi_gpio_inventory.ts

Global Arguments

ArgumentTypeDescription
pinctrlPathstringPath to the pinctrl binary. Override for odd installs.
gpioinfoPathstringPath to the gpioinfo binary. Override for odd installs.
primaryGpiochipNamestringThe gpiochip whose line indices are verified to match pinctrl's
fn readGpio()
Run pinctrl get and gpioinfo, join consumer data for

Resources

gpio(infinite)— Every GPIO pin's function/level/pull from pinctrl get, enriched
03Stats
A
100 / 100
Downloads
14
Archive size
9.9 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
04Platforms