help please

jagger

New Member
disablebod
let dirs = %00000111 'set pins 3&4 input 0,1,2, output
symbol counter=b1 'counter = variable b1
symbol pir=pin3 'pin 3 is pir
symbol ldr=pin4 'pin 4 is ldr
symbol campower=pin1 'pin 1 is campower
symbol shutter=pin2 'pin 2 is shutter
symbol led=pin0
Why will the last line not syntax?
 

westaust55

Moderator
Syntax error

Which PICAXE are you using? :confused:

Which PICAXE is the Programming Editor set for? :confused:

For example the 08/08M do not have an input pin 0
 

westaust55

Moderator
From Manual 2 there is no pin0 for the 08M as a "pin" designator.

"pins = x : x : x : pin4 : pin3 : pin2 : pin1 : x"


You can set:
SYMBOL LED = 0
Then in the Program use: HIGH LED and LOW LED
 
Last edited:
Top