2.74 Lab2 Motor Example Code
Dependencies: MotorShield QEI_pmw
Revision 4:db9c394ee2da, committed 2022-09-16
- Comitter:
- adimmit
- Date:
- Fri Sep 16 01:43:00 2022 +0000
- Parent:
- 3:1eee0d9f1223
- Commit message:
- updated baud;
Changed in this revision
MotorShield.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1eee0d9f1223 -r db9c394ee2da MotorShield.lib --- a/MotorShield.lib Sat Sep 12 17:12:04 2020 +0000 +++ b/MotorShield.lib Fri Sep 16 01:43:00 2022 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/elijahsj/code/MotorShield/#e3a2ade56b79 +https://os.mbed.com/users/adimmit/code/MotorShield/#46feb6919761
diff -r 1eee0d9f1223 -r db9c394ee2da main.cpp --- a/main.cpp Sat Sep 12 17:12:04 2020 +0000 +++ b/main.cpp Fri Sep 16 01:43:00 2022 +0000 @@ -24,6 +24,7 @@ float velocity; float current; motorShield.motorAWrite(0, 0); //turn motor A off + pc.baud(115200); //use the motor shield as follows: //motorShield.motorAWrite(DUTY CYCLE, DIRECTION), DIRECTION = 0 is forward, DIRECTION =1 is backwards.