Jambo no8
Posts: 14
Joined: Fri Jul 31, 2015 5:35 pm

Run python program with a switch

Tue Sep 29, 2015 9:33 am

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?)
:?

AndersM
Posts: 33
Joined: Sun Sep 06, 2015 1:18 pm

Re: Run python program with a switch

Tue Sep 29, 2015 11:33 am

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.

Return to “Beginners”