Release candidate version. The pointer in GAS Pressure display is changed to a triangle.

Dependencies:   UniGraphic mbed vt100

Please note, at 2-Mar-2018 the current version of mbed-lib has a defect in Ticker.
https://os.mbed.com/forum/bugs-suggestions/topic/29287/

So, mbed lib version 157 is intentionally being used.
Please do not update mbed library until the problem in the above URL is fixed.

In this version, format of GAS Pressure Display has been changed.
/media/uploads/Rhyme/low.jpg

/media/uploads/Rhyme/good.jpg

/media/uploads/Rhyme/high.jpg

moto

edge_sensor/edge_temp.h

Committer:
Rhyme
Date:
2018-03-02
Revision:
0:774324cbc5a6

File content as of revision 0:774324cbc5a6:

#ifndef _EDGE_TEMP_H_
#define _EDGE_TEMP_H_
#include "mbed.h"
#include "edge_sensor.h"
#include "LM75B.h"
#include "SMTC502AT.h"

/**
 * edge_temp edge_sensor to measre temperature sensors
 */

class edge_temp : public edge_sensor {
public:
/**
 * constructor
 * @param *temp1 LM75B temperature sensor object (with Color1)
 * @param *temp2 SMTC502AT temperature sensor object (befor)
 * @param *temp3 SMTC502AT temperature sensor object (after)
 * @param *temp4 LM75B temperature sensor object (with Color2)
 */
    edge_temp(LM75B *temp1, SMTC502AT *temp2, SMTC502AT *temp3, LM75B *temp4) ;
    
/**
 * destructor
 */
    ~edge_temp(void) ;
    
/**
 * reset and clear the internal values
 */
    virtual void    reset(void) ;

/**
 * prepare for sampling 
 */
    virtual void    prepare(void) ;
    
/**
 * sample measure and store sensor values
 * @return 0: success non-0: failure
 */
    virtual int    sample(void) ;
    
/**
 * deliver the values to the afero cloud
 */
    virtual int     deliver(void) ;
    
/**
 * Show the value(s) in the display (TFT)
 */
    virtual void    show(void) ;

private:
    LM75B       *_temp1 ;
    SMTC502AT   *_temp2 ;
    SMTC502AT   *_temp3 ;
    LM75B       *_temp4 ;
    float       _ftemp[4] ;
} ;

extern float *current_temp ;
#endif /* _EDGE_TEMP_H_ */