Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 2:3db66088534c
- Parent:
- 1:0b3ef7a962cb
--- 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)