NerfUS

Dependencies:   mbed mbed-rtos HardwareInterface EthernetInterface WebSocketClient

Files at this revision

API Documentation at this revision

Comitter:
dupm2216
Date:
Wed Feb 15 22:26:39 2017 +0000
Parent:
9:4731e16b1359
Child:
12:55930acb6c96
Commit message:
Use external library from mbed.org repo

Changed in this revision

BlinkLib.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BlinkLib.lib	Wed Feb 15 22:26:39 2017 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/dupm2216/code/BlinkLib/#77124b36cdd4
--- a/main.cpp	Thu Feb 09 16:35:19 2017 -0500
+++ b/main.cpp	Wed Feb 15 22:26:39 2017 +0000
@@ -1,15 +1,14 @@
-#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();
     }
 }
+