I just did a fresh image to an NVME drive and all went very smooth. . . I have one request for future onboarding:
- Install the "libgpiod" library. This one is the official GPIO library, but there is also the GPIO.Zero python library.
- Create a "GPIO" group
- Add user astronaut to the GPIO group
- Create the following udev rule to allow user astronaut non-sudo access to the GPIO pins on Raspberry Pi's:
/etc/udev/rules.d/99-gpio.rules
# Set permissions for gpiomem and gpiochip devices
KERNEL=="gpiomem", GROUP="gpio", MODE="0660"
KERNEL=="gpiochip*", GROUP="gpio", MODE="0660"
# Set permissions for GPIO pin files when they are created
SUBSYSTEM=="gpio", ACTION=="add", PROGRAM="/bin/sh -c 'chgrp -R gpio /sys%p && chmod -R g+w /sys%p'"
I just did all of this manually, but am thinking it may be nice to add to onboarding.
Thanks!!
There is also the GPIO.zero library for Python if there are other users interested:
# Install pip if not already installed
sudo pacman -S python-pip
# Install GPIO Zero
pip install gpiozero
I just did a fresh image to an NVME drive and all went very smooth. . . I have one request for future onboarding:
/etc/udev/rules.d/99-gpio.rulesI just did all of this manually, but am thinking it may be nice to add to onboarding.
Thanks!!
There is also the GPIO.zero library for Python if there are other users interested: