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-rtos mbed HardwareInterface
Fork of NerfUS_cmake_cleanup by
Revision 10:6ce1d834ecb7, committed 2017-02-15
- Comitter:
- dupm2216
- Date:
- Wed Feb 15 22:26:39 2017 +0000
- Parent:
- 9:4731e16b1359
- Child:
- 11: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();
}
}
+
