fritz42_male
Senior Member
Hi guys,
Can someone explain what I'm doing wrong - I want to use sensible variable names and most of what I'm doing is working OK but just keep on getting a syntax error
All I want to do is use PIR_IN instead of pinB.7 but it keeps telling me it's invalid syntax! e.g. D0: Loop Until PIR_IN=1
And if it looks identical to what Halstaff is doing that's because it is. We are collaborating on some Halloween stuff.
Can someone explain what I'm doing wrong - I want to use sensible variable names and most of what I'm doing is working OK but just keep on getting a syntax error
Code:
#Picaxe 18M2
symbol PIR_IN=B.7
symbol PIR_COUNT=w0
Init: 'Staring point to setup all inputs, outputs and set variables
debug
Pause 6000'0 'Wait 60 secs for PIR to 'settle down
PIRtest:
Do : Loop Until pinB.7=1
Do
PIR_COUNT = PIR_COUNT + 1 * pinB.7
Loop Until PIR_COUNT = 10
PIR_COUNT = 0
And if it looks identical to what Halstaff is doing that's because it is. We are collaborating on some Halloween stuff.