I am a complete beginner with the RPi.
I can get "number-type" programs to run OK, but trying to use the GPIO
is driving me mad!
import RPi.GPIO as GPIO
except Runtime error:
print ("import error") #doesn't print, so I assume import was OK
GPIO.setup (7, GPIO.OUT) #runtime error "No access to /dev/mem Try running as root!"
GPIO.output (7, true) #hoped to see some volts on pin7 but prog. doesn't get this far!
I have tried all the fixes I can find on the internet without any joy.
I don't understand "/dev/mem" or "root" in this context, so what to do???