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
Diff: onoff.h
- Revision:
- 0:ac12fb337ed8
diff -r 000000000000 -r ac12fb337ed8 onoff.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/onoff.h Fri Mar 01 15:49:13 2019 +0000
@@ -0,0 +1,25 @@
+#ifndef ONOFF_H
+#define ONOFF_H
+
+#include <DigitalOut.h>
+#include <bp.h>
+
+namespace smartled
+{
+
+class onoff : public mbed::DigitalOut
+{
+public:
+ onoff(PinName name,smartled::bp * bp, std::size_t * click_cpt);
+
+ void run(void);
+
+ void operator ()(void);
+private:
+ smartled::bp * m_bp;
+ bool m_state;
+ std::size_t * m_click_cpt;
+};
+
+}
+#endif // ONOFF_H
\ No newline at end of file