Code:
LED var PORTD ' Alias PORTD.0 to LED
i VAR byte
mainloop:
for i = 0 to 7
High LED ' Turn on LED connected to PORTD.i
Pause 250 ' Delay for .5 seconds
Low LED' Turn off LED connected to PORTD.i
Pause 750 ' Delay for .5 seconds
Next i
Goto mainloop ' Go back to loop and blink LED forever
End
Hi Jpadin1,
Byte is a bit array, lose the modifier and it should do what you want see snippet above
or
Code:
HIGH LED[i]
pause 750
LOW LED[i]
pause 750
Check this link out:
http://www.picbasic.co.uk/forum/showthread.php?t=8876
Last edited by Archangel; - 14th February 2010 at 17:58.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks