Skip to content

Instantly share code, notes, and snippets.

View fruttodelmondo's full-sized avatar

fdm fruttodelmondo

View GitHub Profile
@fruttodelmondo
fruttodelmondo / #Raspberry Pi 5 GPIO in a Docker container.md
Last active February 5, 2024 11:44
Demonstrating how to use Raspberry Pi 5 GPIO pins in a Docker container

This gist demonstrates how to access the Raspberry Pi 5 GPIO pins inside a docker container without the need to run Docker with --privileged

Copy Dockerfile and gpiod-test.py onto your host, then run

docker build -t gpiotest . && docker run -it --device /dev/gpiochip4:/dev/gpiochip4 gpiotest