I wrote python program that can be blink led on raspberry pi .
import RPi.GPIO as GPIO ## Import GPIO library import time ## import Delay library GPIO.setmode(GPIO.BOARD) GPIO.setup(26,GPIO.OUT) while True: GPIO.output(26,True) ##Turn on LED time.sleep(1) ## wait for one second GPIO.output(26,False) ## Turn of LED time.sleep(1)
Now, I want to blink led with help of web page on apache server. So whenever I click on button, led should be blink.
<html> <body> <title>Raspberry PI</title> <h1>LED</h1> <form> <input type="Button" value="Blink LED" onclick="href='led.py'"> </form> </body> </html>
I have just started to working on it. This is my effort, I have doubt on html Can you tell me, What's wrong in html page. How to blink led using web page?