Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 do? image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

8. Explain how to price managerial and professional jobs.pg 87

Answered: 1 week ago