Hi All,
Thanks to a little confusion on my part last week I was having problems installing the GPIO library for python. I think I got around that issue now, now the problem is:
Traceback (most recent call last):
File "/home/pi/Pyton_Source/gpiooutput.py", line 5, in <module>
GPIO.setup (11, GPIO.OUT)
RuntimeError: No access to /dev/mem. Try running as root!
>>>
This was an example from the Rapsberry Pi Users Guide book by Ebdon Upton & Gareth Halfacree
I have done the
sudo python
routine to ensure python can access the GPIO,
giving back:
[email protected] ~/Pyton_Source $ sudo python
Python 2.7.3 (default, Jan 13 2013, 11:20:46)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
The script I am using is:
#First Play with GPIO 9/11/2013 16:29
import RPi.GPIO as GPIO
import time
GPIO.setup (11, GPIO.OUT)
while True:
GPIO.output(11,True)
time.sleep(2)
GPIO.output(11, False)
time.sleep(2)
from page 195 of the user guide. Am I missing something ?
Glenn