Need some help again please.
I checked the manual and maybe I am misunderstanding something, but a syntax error keeps popping up.
I checked the manual and maybe I am misunderstanding something, but a syntax error keeps popping up.
Code:
Start:
;Analogue sensor find thresholds by trial and error, depends on soil type, etc.
symbol sensor1 = C.1
readadc sensor1, b10
if b10 <100 then goto wet
if b10 =>100 and =<170 then goto JustRight ; ERROR ON THIS LINE
if b10 >170 then goto dry
;******************************************
goto start
Wet:
SerTxd("Too Wet, pump is off, ADC value ",#b10, CR, LF)
low pump1
goto start
JustRight:
SerTxd("Just Right, ADC value ",#b10, CR, LF)
low pump1
goto start
Dry:
SerTxd("Too Dry, pump is on, ADC value ",#b10, CR, LF)
high pump1
goto start