Trying to use a library

Dependencies:   mbed-rtos mbed BlinkLib

Fork of NerfUS by NerfUS

Revision:
9:2d5e60c13461
Parent:
8:5b1548305a7f
Child:
10:2419cf5479c7
--- a/main.cpp	Thu Feb 09 16:31:14 2017 +0000
+++ b/main.cpp	Thu Feb 09 16:35:02 2017 +0000
@@ -1,11 +1,15 @@
-#include "Blink.hpp"
+#include "mbed.h"
+#include "rtos.h"
 
-DigitalOut led(LED1);
+DigitalOut myled(LED1);
 
 int main()
 {
     while(1)
     {
-        blink(led);
+        myled = 1;
+        wait(0.5);
+        myled = 0;
+        wait(0.5);
     }
 }