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 MMA8451Q USBDevice WakeUp vt100
Fork of afero_node_suntory_2017_06_15 by
sensors/Color/Color_VEML6040.hpp@2:dfe671e31221, 2017-01-24 (annotated)
- Committer:
- wataloh
- Date:
- Tue Jan 24 10:00:28 2017 +0000
- Revision:
- 2:dfe671e31221
- Child:
- 3:6dec44cbb664
latest
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wataloh | 2:dfe671e31221 | 1 | #ifndef _MARUSOL_SENSOR_MANAGER_COLOR_VEML_6040_H_ |
wataloh | 2:dfe671e31221 | 2 | #define _MARUSOL_SENSOR_MANAGER_COLOR_VEML_6040_H_ |
wataloh | 2:dfe671e31221 | 3 | |
wataloh | 2:dfe671e31221 | 4 | #include "mbed.h" |
wataloh | 2:dfe671e31221 | 5 | #include "VEML6040.h" |
wataloh | 2:dfe671e31221 | 6 | #include "ToDoQ.h" |
wataloh | 2:dfe671e31221 | 7 | #include "RTC_Handler.h" |
wataloh | 2:dfe671e31221 | 8 | #include "TimeEventHandler.hpp" |
wataloh | 2:dfe671e31221 | 9 | |
wataloh | 2:dfe671e31221 | 10 | namespace MaruSolSensorManager |
wataloh | 2:dfe671e31221 | 11 | { |
wataloh | 2:dfe671e31221 | 12 | class Color_VEML6040 : public ToDo, public TimeEventHandler<Color_VEML6040> |
wataloh | 2:dfe671e31221 | 13 | { |
wataloh | 2:dfe671e31221 | 14 | Color_VEML6040(); |
wataloh | 2:dfe671e31221 | 15 | ~Color_VEML6040(); |
wataloh | 2:dfe671e31221 | 16 | VEML6040 *m_veml6040; |
wataloh | 2:dfe671e31221 | 17 | PwmOut *LEDs[3]; |
wataloh | 2:dfe671e31221 | 18 | void doLEDs(uint8_t R, uint8_t G, uint8_t B); |
wataloh | 2:dfe671e31221 | 19 | void gogo(); |
wataloh | 2:dfe671e31221 | 20 | void go(); |
wataloh | 2:dfe671e31221 | 21 | public: |
wataloh | 2:dfe671e31221 | 22 | friend class TimeEventHandler; |
wataloh | 2:dfe671e31221 | 23 | virtual void toJSON(char*); |
wataloh | 2:dfe671e31221 | 24 | virtual void getBytes(uint8_t*); |
wataloh | 2:dfe671e31221 | 25 | }; |
wataloh | 2:dfe671e31221 | 26 | }; |
wataloh | 2:dfe671e31221 | 27 | |
wataloh | 2:dfe671e31221 | 28 | #endif //_MARUSOL_SENSOR_MANAGER_COLOR_VEML_6040_H_ |