gpio allows access to a specific GPIO pin. The interface is restricted because it provides privileged access to GPIO hardware.
number(slot): GPIO pin number to export and expose to consuming snaps
snap interface gpio to see which gpio devices are available on the system:
$ snap interface gpio name: gpio summary: allows access to specifc GPIO pin slots: - pi:bcm-gpio-0 - pi:bcm-gpio-1 - pi:bcm-gpio-10 [...]
Once connected, the consuming snap can use the device via
N is the pin number specified by the connected slot.
Last updated 1 year, 3 months ago. Help improve this document in the forum.