I am wondering if I can have two questions answered:
A) Does the AF_Motor shield not have a .Write() member in it's library? I am trying to write a value down to convert a stepper's steps, into degrees on the serial monitor. my code line simply states this: "stepper.write(val);" but shoes up as 'class AF_stepper has no member named write' message from the compiler.
B) if .write() does not exist, is there a variant?
I am trying to write a value down to convert a stepper's steps, into degrees on the serial monitor. my code line simply states this: "stepper.write(val);" but shoes up as 'class AF_stepper has no member named write' message from the compiler.
You are going about this all wrong. The stepper motor can't write to the serial port. That makes no sense. The stepper motor can't tell you how many times it has stepped, so don't bother trying to ask it. YOU must keep track of the number of times that you have asked it to step, and you most hope that it has actually been able to step that number of times.
Ok, I see. I was playing with potentiometers, and I know how to map those. I figured because steppers move in pulses, they could be mapped on they're own. I understand now. Thank you.
For those that asked, the Af motor shield library is found in playground under "interfacing with hardware"