Phil Wainwright
Temporal Novice
Hi there all,
I have a problem (Yes, I know, people have been saying it for years )
I am trying to wrap my head around programming a Raspberry Pi.
The end task is simple, I have a Pi and a Piface digital. They are connected and I have control through the piface emulator.
What I am trying to find is a bit of help with creating a very short programme. I have looked everywhere and posted on the Pi forum, but that post is now waiting to be moderated. I am wondering if anyone here could help me?
what I want to do is:- (written in pidgeon basic)
10 Monitor input 1.
20 If input 1 is enabled, then I want to enable relay 1
30 Monitor input 2
40 If input 2 is enabled, then I want to wait (x) seconds and then disable relay 1 and enable relay 2 for (y) seconds
50 Then disable relay 2 and enable relay 1
60 Monitor input 3
70 If input 3 is enabled, then end
80 Goto 20
Any one feel able to offer some help? Please
Thank you
I have a problem (Yes, I know, people have been saying it for years )
I am trying to wrap my head around programming a Raspberry Pi.
The end task is simple, I have a Pi and a Piface digital. They are connected and I have control through the piface emulator.
What I am trying to find is a bit of help with creating a very short programme. I have looked everywhere and posted on the Pi forum, but that post is now waiting to be moderated. I am wondering if anyone here could help me?
what I want to do is:- (written in pidgeon basic)
10 Monitor input 1.
20 If input 1 is enabled, then I want to enable relay 1
30 Monitor input 2
40 If input 2 is enabled, then I want to wait (x) seconds and then disable relay 1 and enable relay 2 for (y) seconds
50 Then disable relay 2 and enable relay 1
60 Monitor input 3
70 If input 3 is enabled, then end
80 Goto 20
Any one feel able to offer some help? Please
Thank you