Answers for "raise RuntimeError('Error accessing GPIO.') RuntimeError: Error accessing GPIO."

0

raise RuntimeError('Error accessing GPIO.') RuntimeError: Error accessing GPIO.

The RPi.GPIO Python module is bundled with Raspbian.

Currently RPi.GPIO has to be run with root priviliges because it accesses /dev/mem. You need root priviliges to access /dev/mem.

So you have to run RPi.GPIO with sudo or similar.
Posted by: Guest on September-05-2020

Code answers related to "raise RuntimeError('Error accessing GPIO.') RuntimeError: Error accessing GPIO."

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language