I'm having what appears to be a simple problem but I don't understand how to fix it. The program should be simple and essentially has a PIR sensro turn on some LEDs.
The program is as follows:
#Picaxe 08M2
‘ ********************************************
‘ PICAXE-08M2 input/output pin definitions
symbol LED = C.4 ‘ Control line for all LEDs (output 4)
symbol PIR = C.3 ‘ PIR Input Signal (input 3)
‘ ********************************************
main: let LED = 0
If PIR = 1 then Flash
pause 1000
Goto main
Flash: Let LED = 1
Pause 5000
goto main
The syntax error is on the line starting with "main"
What am I doing wrong?
Thanks.
Fierojo
The program is as follows:
#Picaxe 08M2
‘ ********************************************
‘ PICAXE-08M2 input/output pin definitions
symbol LED = C.4 ‘ Control line for all LEDs (output 4)
symbol PIR = C.3 ‘ PIR Input Signal (input 3)
‘ ********************************************
main: let LED = 0
If PIR = 1 then Flash
pause 1000
Goto main
Flash: Let LED = 1
Pause 5000
goto main
The syntax error is on the line starting with "main"
What am I doing wrong?
Thanks.
Fierojo