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:
- 2:38ec7638236e
- Parent:
- 1:b862262a9d14
- Child:
- 3:ea5f67f11825
diff -r b862262a9d14 -r 38ec7638236e main.cpp
--- a/main.cpp Wed Sep 04 15:30:13 2019 +0000
+++ b/main.cpp Tue Sep 10 14:01:45 2019 +0000
@@ -1,23 +1,21 @@
#include "mbed.h"
-//#include "HIDScope.h"
-//#include "QEI.h"
#include "MODSERIAL.h"
-//#include "BiQuad.h"
-//#include "FastPWM.h"
-
-DigitalOut led(LED_RED);
-
+DigitalOut myled2(LED_RED);
+DigitalOut myled(LED_BLUE);
MODSERIAL pc(USBTX, USBRX);
-
+
int main()
{
- pc.baud(115200);
- pc.printf("\r\nStarting...\r\n\r\n");
+ pc.printf("\rhallo\n");
while (true) {
-
- led = !led;
-
- wait_ms(500);
+ pc.printf("\r");
+ char c;
+ c= pc.getc();
+ myled =!myled;
+ myled2 =!myled2;
+ pc.printf("\n\r");
+ pc.putc(c);
}
}
+
\ No newline at end of file