File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
diffbot_base/scripts/base_controller/test/motor_controller Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22 * Author: Franz Pucher
33 */
44
5+ // Include unity library
6+ // For details see https://docs.platformio.org/en/latest/plus/unit-testing.html#api
57#include < unity.h>
68
79#include < adafruit_feather_wing/adafruit_feather_wing.h>
810
11+ using namespace diffbot ;
912
10- AdafruitMotorController AMD = AdafruitMotorController(3 );
11- MotorControllerIntf<Adafruit_MotorShield>* pMotorController = &AMD ;
13+ AdafruitMotorController AMC = AdafruitMotorController(3 );
14+ MotorControllerIntf<Adafruit_MotorShield>* pMotorController = &AMC ;
1215
1316
1417void motorSweep (MotorControllerIntf<Adafruit_MotorShield>* i_pMotorController)
@@ -49,7 +52,7 @@ void setup() {
4952 Serial.begin (9600 ); // set up Serial library at 9600 bps
5053 Serial.println (" AdafruitMotorController Test" );
5154
52- AMD .begin (); // create with the default frequency 1.6KHz
55+ AMC .begin (); // create with the default frequency 1.6KHz
5356 // AFMS.begin(1000); // OR with a different frequency, say 1KHz
5457}
5558
You can’t perform that action at this time.
0 commit comments