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.
Diff: led.h
- Revision:
- 0:7a97ebb833eb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/led.h Sun May 05 00:02:11 2019 +0000
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "mbed.h"
+
+class Led {
+public:
+ Led(PinName pin);
+ void toggle();
+ void on();
+ void off();
+private:
+ DigitalOut m_led;
+};