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: BMT-K9-Regelaar Encoder MODSERIAL mbed
Fork of BMT-K9-Regelaar by
Revision 3:1241d75b7f49, committed 2013-10-15
- Comitter:
- gerard1993
- Date:
- Tue Oct 15 14:10:02 2013 +0000
- Parent:
- 2:3d4a843be2a9
- Child:
- 4:9ecf57487c72
- Commit message:
- 2e motor
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Oct 14 12:26:41 2013 +0000
+++ b/main.cpp Tue Oct 15 14:10:02 2013 +0000
@@ -16,10 +16,10 @@
int main() {
//LOCAL VARIABLES
AnalogIn potmeter(PTC2);
- Encoder motor1(PTD0,PTC9);//first pin on PTAx or PTDx
+ Encoder motor1(PTD5,PTC8);//first pin on PTAx or PTDx
MODSERIAL pc(USBTX,USBRX);
- PwmOut pwm_motor(PTA12);
- DigitalOut motordir(PTD3);
+ PwmOut pwm_motor(PTA5);
+ DigitalOut motordir(PTD1);
float setpoint;
float pwm_to_motor;
float setspeed;
