2017年3月,伊豆大島共同打上実験 CORE_缶ロケチーム電装

Dependencies:   MPU6050 MS5607 mbed SDFileSystem

Files at this revision

API Documentation at this revision

Comitter:
mikawataru
Date:
Thu Feb 23 15:05:50 2017 +0000
Parent:
8:a9e115560ba3
Child:
11:b61d0fcc2ed3
Commit message:
add serial device

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Feb 23 12:47:00 2017 +0000
+++ b/main.cpp	Thu Feb 23 15:05:50 2017 +0000
@@ -67,7 +67,7 @@
 DigitalIn sw(p21);
 BusOut myled(LED1,LED2,LED3,LED4);
 SDFileSystem sd(p11, p12, p13, p14, "sd");
-Serial pc(USBTX, USBRX);
+Serial device(USBTX, USBRX);
 PwmOut Door_1_1(p23);
 PwmOut Door_1_2(p24);
 PwmOut Door_2_1(p25);
@@ -189,7 +189,7 @@
       Door_2_1.pulsewidth(motion);
       Door_2_2.pulsewidth(motion);
    }else{
-      pc.printf("error\r\n");
+      device.printf("error\r\n");
    }
 }