Page 1 of 1

Run python program with a switch

Posted: Tue Sep 29, 2015 9:33 am
by Jambo no8
Hi,
I have a python program that will be run away from a computer. Is it possible to run the program without keying run on the ide? For example with a switch of the GPIO (but then this will need a program also?)
:?

Re: Run python program with a switch

Posted: Tue Sep 29, 2015 11:33 am
by AndersM
One possibilty could be to change the python program you want to run so it waits until a gpio signal is read to execute the main task, and then goes back into waiting for a new gpio-input.