40X1 dirsb syntax

john2051

New Member
Hi, I am using a picaxe 40x1 on an axe091 board. Trying to set all the pins with "let dirsb=255" results in a syntax error and yet dirsc works.
I have looked through the manuals, and I can't seem to find out why. BTW if I use a 40x2 it works!
Any help, or explanation or equivalent would be appreciated.
thank you
 

Technical

Technical Support
Staff member
Please see part 1 of the manual for the 40X1 pinout diagram. You will see portB are outputs only on this older part. Hence no dirsB command is required or supported.
 

papaof2

Senior Member
I'll guess you did NOT tell the editor which PICAXE you were using. If you had, the error message from the Syntax Check would have been:
Code:
let dirsb=255
    ^

Error: Unknown symbol - dirsb
"Unknown symbol" because that command does not exist for the 40X1.
 

john2051

New Member
Thanks to both, tired eyes and trying to work things out late in the evening and I missed these.
Much appreciated, thank you
 
Top