I'm trying to set a pin to high (for instance) in a periodic way using web2py in an embedded linux. I set the GPIO to output for example : GPIO.setup(pin 20, output) and then if x>y GPIO.setup(pin 20, high)
and run the scheduler every 10 second The problem with this is that every 10 second when it gets to the line which sets the pin to be output, it turns it low (that's the default). I am frustrated with scheduler to get it to run two functions so that I can put the pin initialization in one which runs only at startup. I tried to use the crontab -e and initialize there, but it looks like web2py models does not have access to those and failed to run. I've been thinking to make a creative way to bypass GPIO setup after first run of scheduler and I was successful but scheduler fails in the second repeat because does not know the setup apparently. Web2py experts please help me find out the solution....Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.