APP2 - SNE CODE / Mbed 2 deprecated Exercice_3V1

Dependencies:   mbed

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