kakunin

Dependencies:   ADXL345 HMC6352 Motor PID SoftPWM mbed

Files at this revision

API Documentation at this revision

Comitter:
WAT34
Date:
Wed Jul 08 11:05:16 2015 +0000
Parent:
2:b8e04b6dc9ab
Child:
4:bd8e35d546d7
Commit message:
lpc1114ver; ;

Changed in this revision

SoftPWM.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SoftPWM.lib	Wed Jul 08 11:05:16 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/komaida424/code/SoftPWM/#7918ce37626c
--- a/main.cpp	Tue Jul 07 07:40:06 2015 +0000
+++ b/main.cpp	Wed Jul 08 11:05:16 2015 +0000
@@ -15,18 +15,19 @@
 #include "PID.h"
 #include "Motor.h"
 #include "HMC6352.h"
+#include "SoftPWM.h"
 Timeout sho;
 Timeout rev;
-PwmOut sp1(p25);
-BusOut air(p15,p16);
-BusOut air2(p17,p18);
-DigitalIn sw(p10,PullUp);
-DigitalIn sw2(p11,PullUp);
-ADXL345 accell(p5,p6,p7,p8);
+SoftPWM sp1(dp25);
+BusOut air(dp9,dp10);
+BusOut air2(dp11,dp13);
+DigitalIn sw(dp28,PullUp);
+DigitalIn sw2(dp26,PullUp);
+ADXL345 accell(dp1,dp2,dp6,dp4);
 PID tilt(0.1, 0.0, 0.0, 0.1);
-Motor motort(p21,p12,p13);
-Motor motord(p22,p27,p28);
-HMC6352 mag (p9,p10);
+Motor motort(dp24,dp17,dp16);
+Motor motord(dp18,dp15,dp14);
+HMC6352 mag (dp5,dp27);
 PID direct(0.1, 0.0, 0.0, 0.1);
 int c;
 void sound()