Orefatoi / Mbed 2 deprecated afero_node_suntory_171018

Dependencies:   mbed MMA8451Q USBDevice WakeUp vt100

Fork of afero_node_suntory_2017_06_15 by Orefatoi

sensors/LiquidPressure/LiquidPressure.hpp

Committer:
Rhyme
Date:
2017-10-18
Revision:
23:e4d2316383a1
Parent:
21:d03c7bbb9f37

File content as of revision 23:e4d2316383a1:

#ifndef _LIQUID_PERSSURE_H_
#define _LIQUID_PERSSURE_H_

#if defined (__MBED__)
#include "mbed.h"
#endif
#include "ToDoQ.h"
#include "Preferences.hpp"
#include "TimeEventHandler.hpp"
#include "Singletoned.hpp"
#include "RTC_Handler.h"

class LiquidPressure :
    public ToDo,
    public TimeEventHandler<LiquidPressure>,
    public Singletoned<LiquidPressure>
{
    LiquidPressure();
    ~LiquidPressure();
    float calc();
    float val;
    AnalogIn *ain;
    void go();
public:
    friend class TimeEventHandler;
    friend class Singletoned;
    virtual void toJSON(char*);
    virtual void getBytes(uint8_t*);
};

#endif //_LIQUID_PERSSURE_H_