HEPTA-Sat Training 2022 / Mbed 2 deprecated Lab3-05_power_saving

Dependencies:   HEPTA_CDH HEPTA_COM HEPTA_EPS HEPTA_SENSOR mbed

Files at this revision

API Documentation at this revision

Comitter:
RyusukeIwata
Date:
Mon Nov 07 14:56:46 2022 +0000
Parent:
27:6f3dec57c1d5
Commit message:
rawserial

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Jul 22 02:24:02 2020 +0000
+++ b/main.cpp	Mon Nov 07 14:56:46 2022 +0000
@@ -1,9 +1,8 @@
 #include "mbed.h"
 #include "HEPTA_EPS.h"
-Serial pc(USBTX,USBRX);
+RawSerial pc(USBTX,USBRX,9600);
 HEPTA_EPS eps(p16,p26);
 int main() {
-    pc.baud(9600);
     int flag = 0;     // condition
     float btvol;
     for(int i = 0; i < 100; i++) {