Currently, it supports basic functionality such as:
- Pin Direction (Input / Output)
- Write (High / Low)
- Read (High / Low)
- Pull (Up / Down / Off)
Would be nice to add in the future:
It works by memory-mapping the bcm2835 gpio range, and therefore require root/administrative-rights to run.
Using without root
This library can utilize the new /dev/gpiomem
memory range if available.
You will probably need to upgrade to the latest kernel (or wait for the next raspbian release) if you’re missing /dev/gpiomem. You will also need to add a gpio group, add your user to the group, and then set up udev rules. I would recommend using create_gpio_user_permissions.py if you’re unsure how to do this.