HEPTA-Sat Training 2022 / Mbed 2 deprecated Lab1-04_create_satellite_program_step1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
RyusukeIwata
Date:
Mon Nov 07 14:03:27 2022 +0000
Parent:
0:a0e5d6f42ee8
Commit message:
change to rawserial

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jul 02 08:50:45 2020 +0000
+++ b/main.cpp	Mon Nov 07 14:03:27 2022 +0000
@@ -1,10 +1,9 @@
 #include "mbed.h"
 
 DigitalOut cond[]={LED1,LED2,LED3,LED4};
-Serial gs(USBTX,USBRX); // for ground station
+RawSerial gs(USBTX,USBRX,9600); // for ground station
 
 int main() {
-    gs.baud(9600);
     gs.printf("From Sat : Operation Start...\r\n");
     int flag = 0;     // condition
     float sattime=0.0,btvol,temp; //Voltage, Temerature