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.
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: main.cpp
- Revision:
- 3:766c85141f33
- Parent:
- 2:cd67be02b1f7
- Child:
- 4:90ea97188542
--- a/main.cpp Mon Sep 09 09:56:42 2019 +0000
+++ b/main.cpp Mon Sep 09 10:39:34 2019 +0000
@@ -5,19 +5,21 @@
#include "BiQuad.h"
#include "FastPWM.h"
-DigitalOut led(LED_BLUE);
-
-MODSERIAL pc(USBTX, USBRX);
+DigitalOut led(LED_BLUE) ;
+DigitalIn sw2(SW2) ;
+MODSERIAL pc(USBTX, USBRX) ;
int main()
{
- pc.baud(115200);
- pc.printf("\r\nStarting...\r\n\r\n");
+ pc.baud(115200) ;
+ pc.printf("\r\nStarting...\r\n\r\n") ;
while (true) {
- led = !led;
-
- wait_ms(1000);
+ led = !led ;
+ wait_ms(1000) ;
+ char c ;
+ c = pc.getcNb() ;
+ pc.putc(c) ;
}
}