hi, I'm teaching myself picaxe programming and i am trying to figure out how to write a simple program to run a bipolar stepper motor.( using a Picaxe 14m2) Here is my test code :
output c.1,c.0,b.4,b.5
for b1 = 1 to 20
for b0 = 1 to 4
lookup b0, (0,$01,$02,$04,$10), b3
pins=b3
pause 100
next b0
next b1
I am having a problem with the line "pins=b3" as in the picaxe editor it tells me it has a syntax error and i can't figure out the problem. With the Picaxe 14m2 can i use the "pins" command? If not, what do i use?
Basically I want to output the lookup table to my outputs to drive the LD293D IC but I do not understand how to do that.
How do i tell the variable "b3" to go to the "output pins"?
output c.1,c.0,b.4,b.5
for b1 = 1 to 20
for b0 = 1 to 4
lookup b0, (0,$01,$02,$04,$10), b3
pins=b3
pause 100
next b0
next b1
I am having a problem with the line "pins=b3" as in the picaxe editor it tells me it has a syntax error and i can't figure out the problem. With the Picaxe 14m2 can i use the "pins" command? If not, what do i use?
Basically I want to output the lookup table to my outputs to drive the LD293D IC but I do not understand how to do that.
How do i tell the variable "b3" to go to the "output pins"?