MrDEB
Well-Known Member
supposed to be pirate basic or ??
using swordfish basic
I got my 3 dip switches set up = no errors when I hit F12
now does it work?? need to program the little picky.
IF it works then dip switch 4 is to make speed random. so each time the PIR triggers the speed is different
any short arrays or ? for this.
planning on using the TONE & seed setup that Pommie posted and I am using for the different tones (when this baby gets going it drives my wife nuts (very annoying sound).
the code is what I changed / added to get the dip switches set up
we is maken progress I think.
there has to be a shorter way to read all the A ports instead of the way I did it??
using swordfish basic
I got my 3 dip switches set up = no errors when I hit F12
now does it work?? need to program the little picky.
IF it works then dip switch 4 is to make speed random. so each time the PIR triggers the speed is different
any short arrays or ? for this.
planning on using the TONE & seed setup that Pommie posted and I am using for the different tones (when this baby gets going it drives my wife nuts (very annoying sound).
the code is what I changed / added to get the dip switches set up
we is maken progress I think.
there has to be a shorter way to read all the A ports instead of the way I did it??
Code:
WHILE(TRUE) //repeat forever
speed = 25
if PORTA.1=0 THEN //dip1
speed=speed + 10
endif
if PORTA.2=0 then//dip2
speed= speed+50
endif
if PORTA.3=0 then //dip3
speed= speed+70
endif