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
Diff: sensors/TimeEventHandler.hpp
- Revision:
- 15:2c2c0a7c50c1
- Parent:
- 5:9d5c7ee80f3b
- Child:
- 21:d03c7bbb9f37
--- a/sensors/TimeEventHandler.hpp Tue May 16 08:58:26 2017 +0000 +++ b/sensors/TimeEventHandler.hpp Mon May 29 04:06:34 2017 +0000 @@ -15,6 +15,7 @@ PACKET packet; void (A::*callback)(); uint32_t nop_i; + int32_t interval_current; inline void nop(){ if(nop_i>400) { @@ -31,6 +32,9 @@ { callback = NULL;//&A::nop; } + virtual void checkIntervalUpdate() + { + } public: void loop() { @@ -38,6 +42,7 @@ { (self->*callback)(); } + self->checkIntervalUpdate(); } TimeEventHandler(){ nop_i = 0;