Help with Coding?

Phil Wainwright

Junior Member
Messages
76
As Rodger Rabbit would say..

p p p p p p please!

Hi there all,

I have a problem (Yes, I know, people have been saying it for years :D:D )

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 the results are assuming far more prior knowledge than I have. I last programmed in about 1983, and that was using a Tandy TRS-80, other than that, I did some machine code at college... <mumble> years ago. 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 :D

Thank you
 

Phil Wainwright

Junior Member
Messages
76
Thank you ufoMania,

That bit I have already done, it is just working out how to convert the pigeon basic into python.... I am learning, but unfortunately the deadline is looming frighteningly fast.... could you help translate the code above?

Thank you for your help so far..... :D
 


Top