WAIT for INPUT2 = 0 == WHILE INPUT2 = 1 : WEND ( loop if INPUT2 = 1 )
WAIT 40s == PAUSE 40000 ... not 200 !
LED ON for 3 s
LED Off
LOOP
the program shows input levels inverted ... ( may be active low pushbuttons ??? did you think to the pullup ? )
I think the first thing for you is to look at the different states ... and write succession of operations in order, more than write lines and try to make them work together.
That's called an ORGANIGRAM ... ( joined an example )
Now, I've almost written your program ... just translate it into PbP commands ( I gave you the "difficult part" command ... )
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks