Skip to content

Commit

Permalink
Described how to use /dev/gpiomem
Browse files Browse the repository at this point in the history
  • Loading branch information
stianeikeland committed Dec 8, 2015
1 parent 5e579e3 commit 896db2e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ There's a tiny bit of additional information over at my [blog](https://blog.eike
## Releases ##
- 1.0.0 - Supports original rpi A/B/B+
- 2.0.0 - Adds support for rpi 2, by @akramer
- 3.0.0 - Add support for /dev/gpiomem, by @dotdoom

## Usage ##

Expand Down Expand Up @@ -80,3 +81,10 @@ Would be nice to add in the future:
- etc...

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](https://github.com/raspberrypi/linux/pull/1112/files)
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](https://github.com/waveform80/rpi-gpio/blob/master/create_gpio_user_permissions.py) if you're unsure how to do this.

0 comments on commit 896db2e

Please sign in to comment.