HEPTA-Sat Training 2022 / Mbed 2 deprecated Lab1-01_pc_communication

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
RyusukeIwata
Date:
Mon Nov 07 12:37:08 2022 +0000
Parent:
3:c35610b8c2a2
Commit message:
change to RawSerial pc(USBTX,USBRX,9600);

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 07 12:31:50 2022 +0000
+++ b/main.cpp	Mon Nov 07 12:37:08 2022 +0000
@@ -1,9 +1,8 @@
 #include"mbed.h"
 
-RawSerial pc(USBTX,USBRX);
+RawSerial pc(USBTX,USBRX,9600);
 
 int main(){
-    pc.baud(9600);
     int i1=7;
     float i2=7.5;
     char i3='H';