Hello leonardo,
I think I understand what you are trying to do... Try this...This is assuming your previous code compiles... I do not have PB, I only have PBP.
Dwayne
Code:
'code
Symbol Mi = B0
Symbol Se = B1
TOP:
Dir2 = 1 ' make Pins 2 and 1 outputs
Dir1 = 1
Pin2 = 0 ' turn on lamp - 1 minute
For Mi = 1 to 1 'minutes
For Se = 1 to 60 ' seconds
Pin1 = 1 ' test LED
Pause 500
Pin1 = 0
Pause 500
Next
Next
Pin2 = 1 ' turn lamp on - on for 1 minute
For Mi = 1 to 1 ' minutes
For Se = 1 to 60 ' seconds
Pin1 = 1
Pause 500
Pin1 = 0
Pause 500
Next
Next
GoTo TOP
Try something like this:
Code:
'code
Symbol Mi = B0
Symbol Se = B1
TOP:
Dir2 = 1 ' make Pins 2 and 1 outputs
Dir1 = 1
Pin2 = 0 ' turn off lamp - 1 minute
Pin1 = 1' Turn on Lamp
For Se = 1 to 60 ' seconds
Pause 1000
Next
Pin2 = 1 ' turn lamp on - on for 1 minute
Pin1=0 'turn Lamp off for 1 minute.
For Se = 1 to 60 ' seconds
Pause 1000
Next
GoTo TOP
Last edited by Dwayne; - 21st September 2005 at 20:22.
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks