import RPi.GPIO as GPIOimport sys ver = GPIO.VERSIONprint "We are running RPi.GPIO Version ", ver GPIO.setmode(GPIO.BOARD) for led in range(1,40): try: print "Setting ", led, " to output mode and output to GPIO.LOW." GPIO.setup(led, GPIO.OUT) GPIO.output(led, GPIO.LOW) except: print >> sys.stderr, "Didn't work for LED ", led
Standard input is empty
Standard output is empty
Warning: cannot find your CPU L2 cache size in /proc/cpuinfo Traceback (most recent call last): File "app_main.py", line 75, in run_toplevel File "prog.py", line 1, in <module> import RPi.GPIO as GPIO ImportError: No module named RPi
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!