Skip to content

Commit 301ab65

Browse files
committedApr 26, 2016
mirror fix
1 parent 5d7729a commit 301ab65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ sudo node rfid.js
7676

7777
NOTE: Running as root
7878

79-
```Prior to the release of Raspbian Jessie in Feb 2016, access to any peripheral device via /dev/mem on the RPi required the process to run as root. Raspbian Jessie permits non-root users to access the GPIO peripheral (only) via /dev/gpiomem, and this library supports that limited mode of operation.
79+
```
80+
Prior to the release of Raspbian Jessie in Feb 2016, access to any peripheral device via /dev/mem on the RPi required the process to run as root. Raspbian Jessie permits non-root users to access the GPIO peripheral (only) via /dev/gpiomem, and this library supports that limited mode of operation.
8081
8182
If the library runs with effective UID of 0 (ie root), then bcm2835_init() will attempt to open /dev/mem, and, if successful, it will permit use of all peripherals and library functions.
8283
83-
If the library runs with any other effective UID (ie not root), then bcm2835_init() will attempt to open /dev/gpiomem, and, if successful, will only permit GPIO operations. In particular, bcm2835_spi_begin() and bcm2835_i2c_begin() will return false and all other non-gpio operations may fail silently or crash.```
84+
If the library runs with any other effective UID (ie not root), then bcm2835_init() will attempt to open /dev/gpiomem, and, if successful, will only permit GPIO operations. In particular, bcm2835_spi_begin() and bcm2835_i2c_begin() will return false and all other non-gpio operations may fail silently or crash.
85+
```

0 commit comments

Comments
 (0)
Please sign in to comment.