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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Temperature.hpp Source File

Temperature.hpp

00001 #ifndef _MARUSOL_SENSOR_MANAGER_TEMP_HPP_
00002 #define _MARUSOL_SENSOR_MANAGER_TEMP_HPP_
00003 
00004 #include "mbed.h"
00005 #include "ToDoQ.h"
00006 #include "RTC_Handler.h"
00007 #include "TimeEventHandler.hpp"
00008 #include "Singletoned.hpp"
00009 #include "Preferences.hpp"
00010 #include "LM75B.h"
00011 
00012 class Temperature :
00013     public TimeEventHandler<Temperature>,
00014     public Singletoned<Temperature>,
00015     public ToDo
00016 {   
00017     LM75B    *temp01;
00018     AnalogIn *temp02;
00019     AnalogIn *temp03;
00020     Temperature();
00021     ~Temperature();
00022     void go();
00023     friend class TimeEventHandler;
00024     friend class Singletoned;
00025     float calc(float);
00026     int32_t crnt_interval;
00027     virtual void checkIntervalUpdate();
00028     Timer *delta_interval;
00029 public:
00030     virtual void toJSON(char*);
00031     virtual void getBytes(uint8_t* buf){}
00032     virtual void success();
00033 };
00034 
00035 #endif //_MARUSOL_SENSOR_MANAGER_TEMP_HPP_