Hi,
Recently I brought a picaxe28x1.I was trying the following:
main:
readadc10 , 0 , w0
let w1= (w0 - w3)/5
let w3=w0
pause 5000
goto main
The program is pretty simple, but somehow the editor says there is a syntax error in let w1= (w0 - w3)/5. I tried the same program in a different way and it works:
main:
readadc10 , 0 , w0
let w1= w0-w4
let w3=w1/5
let w4=w0
pause 5000
goto main
according to the picaxe manual "On X1 and X2 parts it is possible to enclose part equations in brackets e.g.
let w1 = w2 / (b5 + 2)" . So my question is what is wrong why is bracket not working for my 28x1? why is the editor saying syntax error?
Thanks
Recently I brought a picaxe28x1.I was trying the following:
main:
readadc10 , 0 , w0
let w1= (w0 - w3)/5
let w3=w0
pause 5000
goto main
The program is pretty simple, but somehow the editor says there is a syntax error in let w1= (w0 - w3)/5. I tried the same program in a different way and it works:
main:
readadc10 , 0 , w0
let w1= w0-w4
let w3=w1/5
let w4=w0
pause 5000
goto main
according to the picaxe manual "On X1 and X2 parts it is possible to enclose part equations in brackets e.g.
let w1 = w2 / (b5 + 2)" . So my question is what is wrong why is bracket not working for my 28x1? why is the editor saying syntax error?
Thanks