Thread, 04-14-2011. Inputs to basic stamp. Att, Mike green.
Hi, am having problems sorting out Serin, Baudmode, Serial input, etc. Am 70 years of age and grey matter not working to well (no excuse) However, let me clarify a couple of pointers. My LEDs programme has no loops or GOTOs simply a staight sequence ie, High 1, Pause 1000, Low 1, Pause 45, High 2 , Pause 1000, Low 2 , Pause 45, etc, etc. Could I not use a "Wait " instead of the Pause 1000, and then use an input from the computer keypad to continue the programme ? I am talking about 200-500 milisecs "Wait" period, but it would vary each time I run the programme. Seems a straight forward procedure to me, but obviously a lot more complicated than I realise. Your help would be much appreciated. Chez 7.
Comments
How about posting your code? We can take a look and go from there.
' {$STAMP BS2}
' {$PBASIC 2.5}
G:
PAUSE 1500
HIGH 1
PAUSE 1000
LOW 1
PAUSE 45
HIGH 1
PAUSE 1000
LOW 1
PAUSE 45
HIGH 2
PAUSE 1000
LOW 2
PAUSE 45
HIGH 2
PAUSE 1000
LOW 2
PAUSE 45
etc
etc
I would like to be able to replace PAUSE 1000 with me being able to "control" the lenght of PAUSE eah time I run the programme, as you say Pbasic does not have a "wait" command.Is there an alternative? Thanks, Chez 7.