kakunin
Dependencies: ADXL345 HMC6352 Motor PID SoftPWM mbed
Revision 0:7ec77e777058, committed 2015-07-01
- Comitter:
- WAT34
- Date:
- Wed Jul 01 07:17:03 2015 +0000
- Child:
- 1:56dc085d9e2d
- Commit message:
- normal;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Jul 01 07:17:03 2015 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+BusOut air(p15,p16);
+BusOut air2(p17,p18);
+DigitalIn sw(p10,PullUp);
+DigitalIn sw2(p11,PullUp);
+int main() {
+ while(1) {
+ if (sw == 0){
+ air = 1;
+ air2 = 1;
+ }else if(sw2 == 0){
+ air =2;
+ air2 = 2;
+ }else{
+ air = 0;
+ air2 = 0;
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jul 01 07:17:03 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7cff1c4259d7 \ No newline at end of file