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
GasPressure.hpp
00001 #ifndef _GAS_PRESSURE_H_ 00002 #define _GAS_PRESSURE_H_ 00003 00004 #if defined (__MBED__) 00005 #include "mbed.h" 00006 #endif 00007 #include "ToDoQ.h" 00008 #include "Preferences.hpp" 00009 #include "TimeEventHandler.hpp" 00010 #include "Singletoned.hpp" 00011 #include "RTC_Handler.h" 00012 00013 class GasPressure : 00014 public ToDo, 00015 public TimeEventHandler<GasPressure>, 00016 public Singletoned<GasPressure> 00017 { 00018 GasPressure(); 00019 ~GasPressure(); 00020 float calc(); 00021 float val; 00022 AnalogIn *ain; 00023 void go(); 00024 public: 00025 friend class TimeEventHandler; 00026 friend class Singletoned; 00027 virtual void toJSON(char*); 00028 virtual void getBytes(uint8_t*); 00029 }; 00030 00031 #endif //_GAS_PRESSURE_H_
Generated on Thu Jul 14 2022 06:24:36 by 1.7.2