Dependencies:   mbed QEI HIDScope biquadFilter MODSERIAL FastPWM

Files at this revision

API Documentation at this revision

Comitter:
RobertoO
Date:
Wed Sep 04 15:30:13 2019 +0000
Parent:
0:67c50348f842
Commit message:
Added right FastPWM library as well

Changed in this revision

FastPWM.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 67c50348f842 -r b862262a9d14 FastPWM.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FastPWM.lib	Wed Sep 04 15:30:13 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/Sissors/code/FastPWM/#c0b2265cff9c
diff -r 67c50348f842 -r b862262a9d14 main.cpp
--- a/main.cpp	Fri Aug 30 10:18:40 2019 +0000
+++ b/main.cpp	Wed Sep 04 15:30:13 2019 +0000
@@ -1,19 +1,22 @@
 #include "mbed.h"
 //#include "HIDScope.h"
 //#include "QEI.h"
-//#include "MODSERIAL.h"
+#include "MODSERIAL.h"
 //#include "BiQuad.h"
+//#include "FastPWM.h"
 
 DigitalOut led(LED_RED);
 
+MODSERIAL pc(USBTX, USBRX);
 
 int main()
 {
     pc.baud(115200);
+    pc.printf("\r\nStarting...\r\n\r\n");
     
     while (true) {
         
-        led1 = !led1;
+        led = !led;
         
         wait_ms(500);
     }