Changing some existing code I wrote a year ago. Can't get bit check to work.

binary1248

Senior Member
Just getting back into this picaxe code and trying to modify some exsisting code.
I need to add a switch check on port D.0 (or D.7)
Why is this code snippet showing compile error ? At if pin d.0=1 then continu
This is on a 40X2 chipset
.
SORRY, I found it by using the new manual, I was using an old Pixaxe code reference manual.
.
Code:
Corrct syntax is:
stayhr:
	if pinD.0 = 1 then stayhr
continu:

NOT (the space between pin & d.0 was blowing the syntax check.0


stayhr:
	if pin d.0=1 then stayhr  'THIS LINE SHOWS COMPILE ERROR
continu:
 
Last edited:
Top