Trying to use a library

Dependencies:   mbed-rtos mbed BlinkLib

Fork of NerfUS by NerfUS

Revision:
10:2419cf5479c7
Parent:
9:2d5e60c13461
diff -r 2d5e60c13461 -r 2419cf5479c7 main.cpp
--- a/main.cpp	Thu Feb 09 16:35:02 2017 +0000
+++ b/main.cpp	Thu Feb 09 16:52:32 2017 +0000
@@ -1,15 +1,13 @@
 #include "mbed.h"
-#include "rtos.h"
+#include "MbedBlinker.hpp"
 
-DigitalOut myled(LED1);
+DigitalOut led(LED1);
 
 int main()
 {
+    MbedBlinker blinker(led);
     while(1)
     {
-        myled = 1;
-        wait(0.5);
-        myled = 0;
-        wait(0.5);
+        blinker.blink();
     }
 }