HEPTA-Sat Training 2022 / Mbed 2 deprecated Lab3-01_save_the_letters

Dependencies:   HEPTA_CDH mbed

Files at this revision

API Documentation at this revision

Comitter:
RyusukeIwata
Date:
Mon Nov 07 14:38:02 2022 +0000
Parent:
27:210fe762fa94
Commit message:
rawserial;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Nov 17 03:38:18 2020 +0000
+++ b/main.cpp	Mon Nov 07 14:38:02 2022 +0000
@@ -1,12 +1,11 @@
 #include "mbed.h"
 #include "HEPTA_CDH.h"
  
-Serial pc(USBTX,USBRX);
+RawSerial pc(USBTX,USBRX,9600);
 HEPTA_CDH cdh(p5, p6, p7, p8, "sd");
  
 int main()
 {
-    pc.baud(9600);
     pc.printf("Hello world!\r\n");
     char str[100];
     mkdir("/sd/mydir", 0777);