Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MODSERIAL mbed Motordriver
Fork of mbr_2016_hw_2_ex_2 by
Revision 4:e62a2df0a5b5, committed 2016-10-19
- Comitter:
- meikefrok
- Date:
- Wed Oct 19 14:03:19 2016 +0000
- Parent:
- 3:3a671d01bcb8
- Commit message:
- Errors eruit gehaald
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Oct 19 13:13:13 2016 +0000
+++ b/main.cpp Wed Oct 19 14:03:19 2016 +0000
@@ -35,8 +35,8 @@
int sign; //prevents throwing the motor from full foward to full reverse and stuff melting.
//Motor
-Motor A(D6, D7, D7, Brakeable); // pwm, fwd, rev, brake rechts
-Motor B(D5, D4, D4, Brakeable); // pwm, fwd, rev, brake links
+Motor A(D6, D7, D7, Brakeable); // pwm, fwd, rev, brake (right)
+Motor B(D5, D4, D4, Brakeable); // pwm, fwd, rev, brake (left)
@@ -149,7 +149,7 @@
InterruptIn btn_arm(D3);
btn_arm.fall(&SetValue3);
- InterruptIn btn_arm(D4);
+ InterruptIn btn_claw(D4);
btn_claw.fall(&SetValue4);
while (true);
