Hi all,
Im really new to coding and im trying to do a little project for learning
purposes. Im controlling some leds attached to a raspberry pi.
Currently this is code im using to turn on the GPIO22:
*on default.py*
def index():
return dict(message='LED Test - Main Menu')
def redon():
league but any advice on
this will be greatly appreciate it.
Thanks
On Thursday, April 9, 2015 at 8:42:24 AM UTC-5, Richard wrote:
>
> In default/index.html view try something like this :
>
>
> {{=T('Name of your button')}}
>
>
> Richard
>
> On Wed
So im just starting with Python / Web2py i want to do a simple test
page to have a button to turn on a led on a RPi...
the default.py looks like this
import RPi.GPIO as GPIO
def index():
return dict(message="this is a test")
def btnon():
GPIO.setmode(GPIO.BCM)
GPIO.setup(22,
3 matches
Mail list logo