Sorry that was 3 glasses of red wine and my poor typing skills where due to that ....I have tried it with correct syntax, still not happy...When programming, one has to be very precise:
if pinA.1 = 1 and pinA.2 and pinA.3 = 1 then ...
is NOT the same as ...
if pinA.1 = 1 and pinA.2 = 1 then ...
the difference is you wrote pinA.2 with no comparison value.
IF portA pin1 = 1 and pin2 = 1 then litelamp
Thanks for that, it works !!!!!!Following the lead provided by IP in post#6..
#picaxe 28X
; See Manual 1, pages 97 - 98
main:
if portA pin0 = 1 AND pin1 = 1 AND pin2 = 1 AND pin3 = 1 then
gosub litelamp
endif
goto main
litelamp:
sertxd ("arrived")
return
e