Please give me a sample code to blink LED connected P1 of AXE 08M. I am using PICAXE Editor 6.x
I have registered version of Proteus 8.2 SP2 and have license for PICAXE VSM that is in Proteus for PICAXE. I need to blink and LED using AXE08M in Proteus.
This is the error I am getting in Proteus.
ISIS Release 8.02.02 (Build 18911) (C) Labcenter Electronics 1990- 2014.
Compiling design 'C:\Users\System Administrator\Desktop\PICAXE Projects\08M\LED Blink\LED Blink.pdsprj'.
Netlist compilation completed OK.
Netlist linking completed OK.
Partition analysis completed OK.
Simulating partition [E55CF952]
PROSPICE 8.02.00 (Build 18620) (C) Labcenter Electronics 1993-2014.
Loaded netlist 'C:\Users\SYSTEM~1\AppData\Local\Temp\LISA0363.SDF' for design 'LED Blink.pdsprj'
PICAXE-08M VSM Model 0.0.4 (c) Revolution Education Ltd 2007-08 www.picaxe.co.uk [U1_U1]
PICAXE program compile failed... [U1_U1]
#picaxe 08M [U1_U1]
^ [U1_U1]
line # 7, char # 1 Error: syntax error [U1_U1]
Cannot run PICAXE program! [U1_U1]
Real Time Simulation failed to start.
and this is my code.
I have registered version of Proteus 8.2 SP2 and have license for PICAXE VSM that is in Proteus for PICAXE. I need to blink and LED using AXE08M in Proteus.
This is the error I am getting in Proteus.
ISIS Release 8.02.02 (Build 18911) (C) Labcenter Electronics 1990- 2014.
Compiling design 'C:\Users\System Administrator\Desktop\PICAXE Projects\08M\LED Blink\LED Blink.pdsprj'.
Netlist compilation completed OK.
Netlist linking completed OK.
Partition analysis completed OK.
Simulating partition [E55CF952]
PROSPICE 8.02.00 (Build 18620) (C) Labcenter Electronics 1993-2014.
Loaded netlist 'C:\Users\SYSTEM~1\AppData\Local\Temp\LISA0363.SDF' for design 'LED Blink.pdsprj'
PICAXE-08M VSM Model 0.0.4 (c) Revolution Education Ltd 2007-08 www.picaxe.co.uk [U1_U1]
PICAXE program compile failed... [U1_U1]
#picaxe 08M [U1_U1]
^ [U1_U1]
line # 7, char # 1 Error: syntax error [U1_U1]
Cannot run PICAXE program! [U1_U1]
Real Time Simulation failed to start.
and this is my code.
Code:
' LED Blink.bas
symbol a_while = 500
symbol LED1 = 1
symbol LED2 = 2
#picaxe 08M
do
high LED1
low LED2
pause a_while
low LED1
high LED2
pause a_while
loop