I have a Arduino 101 with a OSEPP Motor & Servo Shield (SCSHD-01). I've run the blink example successfully (yeah) and would now like to run the stepper motor example with the "Adafruit Motor Shield Library" example. I get the following compile error,Arduino: 1.6.9 (Mac OS X), Board: "Arduino/Genuino 101"
In file included from /Users/paulcolby/Documents/Arduino/libraries/Adafruit_Motor_Shield_library/examples/StepperTest/StepperTest.pde:5:0:
/Users/paulcolby/Documents/Arduino/libraries/Adafruit_Motor_Shield_library/AFMotor.h:156:47: error: ‘DC_MOTOR_PWM_RATE’ was not declared in this scope
AF_DCMotor(uint8_t motornum, uint8_t freq = DC_MOTOR_PWM_RATE);
^
exit status 1
Error compiling for board Arduino/Genuino 101.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I think I need another library but am at a loss as to which one.
paulccolby:
I have a Arduino 101 with a OSEPP Motor & Servo Shield (SCSHD-01). I've run the blink example successfully (yeah) and would now like to run the stepper motor example with the "Adafruit Motor Shield Library" example. I get the following compile error,Arduino: 1.6.9 (Mac OS X), Board: "Arduino/Genuino 101"
In file included from /Users/paulcolby/Documents/Arduino/libraries/Adafruit_Motor_Shield_library/examples/StepperTest/StepperTest.pde:5:0:
/Users/paulcolby/Documents/Arduino/libraries/Adafruit_Motor_Shield_library/AFMotor.h:156:47: error: ‘DC_MOTOR_PWM_RATE’ was not declared in this scope
AF_DCMotor(uint8_t motornum, uint8_t freq = DC_MOTOR_PWM_RATE);
^
exit status 1
Error compiling for board Arduino/Genuino 101.
This is basically me with a Win7 PC. I think what PaulS is telling us is that what we need doesn't exist yet. Unfortunately, I am getting into Arduino and went right into the 101 (wanted BLE) w/o realizing it's a relatively new ball game compared to tried and true Uno.
If you try changing the board to a regular Uno; it will likely compile just fine. All else equal of course and in correct syntax and such.
I am really not sure what the answer is, but it's sounding like the library to do what we want doesn't exist. Can some one chime in with a non-flaming, laymen answer?