20X2 input output settings

binary1248

Senior Member
I have been away to long so my brain seems to have lost much.
I have a program working for my 8M2 but now I want to use the 20X2.
Problem is I get a syntax error if inblck=c.6 so whats wrong ?
.
#picaxe 20x2 ;define chip type
;
symbol redled=2 ;pin 5 on chip Output pins for led lights
symbol yelled=1 ;pin 6 on chip
symbol grnled=0 ;pin 7 on chip
symbol inblck=C.6 'pinX input pin X on chip 1st block sense


symbol outblck=c.5 ;input pin 3 on chip 2nd block sense

Start:
input c.5
input c.6 ;make ports c.5 & c.6 inputs
output b.0 ; make pin18 output
output b.1 ;make pin 17 output

;little startup test seq lamps
gosub testblnk

Main:
; Find 1st block entry switcg triped
;note for testing reversed polarty allowing bb test buttons
red: if inblck=c.6 then ;physical pin 4
high redled ;turn on red
 
Top