DAvid Fauzi / Mbed 2 deprecated RxNucleo

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
davidf1000
Date:
Mon Jan 13 15:15:50 2020 +0000
Parent:
1:0b3ef7a962cb
Commit message:
Rx Nucleo

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Sep 20 17:18:16 2019 +0000
+++ b/main.cpp	Mon Jan 13 15:15:50 2020 +0000
@@ -2,7 +2,7 @@
 #include <math.h>
 
 Serial pc(SERIAL_TX, SERIAL_RX,230400);
-Serial mega(PC_10, PC_11);
+Serial mega(PA_9,PA_10);
 Ticker uart;
 const uint8_t num_limit = 64;
 char receivedChars[num_limit];
@@ -220,7 +220,7 @@
 int main()
 {
     pc.printf("Serial receiver V2");
-    uart.attach(&upSensor,1.0);
+    uart.attach(&upSensor,4.0);
     wait(0.5);
     mega.baud(115200);
     while (1)