changing pins (inputs/outputs) 40x2

Pfrogs

Member
How do I write the programming to make pins 23 to 26 output pins
See "let dirsA / dirsB / dirsC / dirsD =" in Picaxe's manual 2. ;)

Edit: just in case you ask, pins 23 to 26 in Picaxe 40X2 are actually set as C.4 to C.7 in programming.
 
Last edited:
thanks for the quick reply

This error message came up when I simulated the program
Only portB pins can be used with servo!

Does this mean that I cannot use these pins to control servos?
Which are the portB pins?
 

Pfrogs

Member
Yes, if you check "Servo" command in Manual 2, you can read that "On X2 parts the servo commands only function on pin0 -pin7 (B.0 to B.7)".

Please, refer to Manual 1, page 33 to see how 40X2 pins are assorted.
 
Top