Hello..
          I want to control gpio pins of beaglebone from web page.for that 
i have written back-end python code to ON and OFF the led. and front-end 
html code to create web page.
How can i embedd this two code and control the led from web page without 
using the PHP.

My front end HTML code is here....
<html>
<body>
    <form method="post">
    <p>
        <button name="button">On</button>
    </p>
    <p>
        <button name="btn">Off</button>
    </p>
    </form>
</body>
</html>

 
And my backend gpio control python code is Here...

import Adafruit_BBIO.GPIO as GPIO

import time

outPin="P9_12"

GPIO.setup(outPin,GPIO.OUT)

while True:

   GPIO.output(outPin, GPIO.HIGH)

   Print  “LED is ON”

   time.sleep(10)

   GPIO.output(outpin,GPIO.LOW)

   Print  “LED is OFF”

   time.sleep(10)

How can i embedd this two code to control the led  from web page without 
using the PHP.
.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/f7141dac-8671-4d50-8aef-dd25aa19cd71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to