Question: I'm trying to use python through a web browser to make an LED blink with my raspberry but this keep showing up. What should i
147.174.194.120 peryp) VNC View pi) pl raspberr exampletar Test Fom 147.174.194.120/oblin + + C A Not secure 147.174.194.120/toblink py #!/usr/bin/python print Content-type: text/html " wheader required to run over web Isport RP1.GPIO as GPIO deport Raspberry Pi GP10 library import time import tine Library print "Hello Pythonicor> GPIO.setmode (GPIO. BOARD) Nuse physical pins on GPIO GPIO.setup(12. GPTO. OUT) set pin 12 to be an output pin print "We assume that an LED in series with a resistor is attached to pin 12- for j in range (0, 3): GPIO.output(12, GPIO.HIGH) time. sleep(i) that for hair a second print ON GPIO.output(12. GPIO.LOW) print "OFF time sleep(1) wait for half a second GPIO. cleanup() print "All done O Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
