Hello to all,
I am using PICBASIC COMPILER 1,45 and the following one I cosay does not work, I want to me to ignite the LED in pin2 by 1 minute and as soon as another minute is extinguished and continue the sequence but does not work to me, some suggestion.
I am using a PIC12F675.
Thanks
'code
Symbol Mi = B0
Symbol Se = B1
TOP:
Dir2 = 1 ' make Pins 2 and 1 outputs
Dir1 = 1
Pin2 = 0 ' turn off lamp - off or 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
Bookmarks