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.
Dependents: NerfUS_cmake_add_library_from_mbed NerfUS NerfUSGameCoordinator
Diff: source/MbedBlinker.cpp
- Revision:
- 0:e67c78f2b4f4
- Child:
- 1:001a600870d9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/source/MbedBlinker.cpp Thu Feb 16 11:42:32 2017 -0500
@@ -0,0 +1,14 @@
+#include "MbedBlinker.hpp"
+
+MbedBlinker::MbedBlinker(DigitalOut led) :
+ led(led)
+{
+}
+
+void MbedBlinker::blink()
+{
+ led = 1;
+ wait(0.5);
+ led = 0;
+ wait(0.5);
+}