pwm period is now 200us instead of the default 20ms veml6040 config is now AF_BIT | TRIG_BIT

Dependencies:   mbed MMA8451Q USBDevice WakeUp vt100

Fork of afero_node_suntory_2017_06_15 by Orefatoi

Revision:
21:d03c7bbb9f37
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sensors/Singletoned.hpp	Fri Jun 09 01:49:53 2017 +0000
@@ -0,0 +1,25 @@
+#ifndef _SINGLETONED_HPP_
+#define _SINGLETONED_HPP_
+
+template<typename A> class Singletoned
+{
+protected:
+    static A *self;
+public:
+    static A* getSelf()
+    {
+        return self == NULL ? self = new A() : self;
+    }
+    static void delSelf()
+    {
+        if(self!=NULL)
+        {
+            delete self;
+            self = NULL;
+        }
+    }
+};
+
+template<typename A> A* Singletoned<A>::self=NULL;
+
+#endif //_SINGLETONED_HPP_
\ No newline at end of file