Is it possible to create/save a python script in the root folder, if so, how? The reason I ask this is because I am trying to use a single GPIO LED with python but when I run the script it gives an error message that it "has no access to /dev/mem. try running as root"
Here is the full error message.
Traceback (most recent call last) : ///new line/// File "/home/pi/LED.py, line 3, in ///new line/// GPIO.setup(7, GPIO.OUT) ///new line/// RuntimeError: No access to /dev/mem. Try running as root!
Just to make sure I was clear, the "///new line///" parts in the message were simply to signify where the lines should be, as I have not found how to insert line breaks on this website.
I am using Raspbian wheezy.(If anyone knows whether the default user for this operating system is a superuser, please leave a comment)