Re: Sequencer
Waaay to much programming for me, dude.
' kitt 1
for loop=1 to 20' do kitt twenty times
for j=0 to 7: portb.0(j)=1: pause 40: portb.0(j)=0:next j ' pause 40 is on time
for j=7 to 0 step-1: portb.0(j)=1: pause 40: portb.0(j)=0:next j
next loop
goto _____
end
or,
for loop=1 to 20' do stay lit twenty times
for j=0 to 7: portb.0(j)=1: pause 40:next j ' light 'em up
for j=6 to 0 step-1: portb.0(j)=0: pause 40:next j ' turn 'em off
next loop
goto _____
end
simple huh? This applies for nearly all pics using portb, or c, or d, or a or whetever.
The more I think about it the worse off I am
Bookmarks