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.
moto
edge_sensor/edge_temp.h@0:774324cbc5a6, 2018-03-02 (annotated)
- Committer:
- Rhyme
- Date:
- Fri Mar 02 07:56:09 2018 +0000
- Revision:
- 0:774324cbc5a6
Release candidate version. GAS Pressure pointer is now a triangle.; Some source file clean-up was done.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:774324cbc5a6 | 1 | #ifndef _EDGE_TEMP_H_ |
Rhyme | 0:774324cbc5a6 | 2 | #define _EDGE_TEMP_H_ |
Rhyme | 0:774324cbc5a6 | 3 | #include "mbed.h" |
Rhyme | 0:774324cbc5a6 | 4 | #include "edge_sensor.h" |
Rhyme | 0:774324cbc5a6 | 5 | #include "LM75B.h" |
Rhyme | 0:774324cbc5a6 | 6 | #include "SMTC502AT.h" |
Rhyme | 0:774324cbc5a6 | 7 | |
Rhyme | 0:774324cbc5a6 | 8 | /** |
Rhyme | 0:774324cbc5a6 | 9 | * edge_temp edge_sensor to measre temperature sensors |
Rhyme | 0:774324cbc5a6 | 10 | */ |
Rhyme | 0:774324cbc5a6 | 11 | |
Rhyme | 0:774324cbc5a6 | 12 | class edge_temp : public edge_sensor { |
Rhyme | 0:774324cbc5a6 | 13 | public: |
Rhyme | 0:774324cbc5a6 | 14 | /** |
Rhyme | 0:774324cbc5a6 | 15 | * constructor |
Rhyme | 0:774324cbc5a6 | 16 | * @param *temp1 LM75B temperature sensor object (with Color1) |
Rhyme | 0:774324cbc5a6 | 17 | * @param *temp2 SMTC502AT temperature sensor object (befor) |
Rhyme | 0:774324cbc5a6 | 18 | * @param *temp3 SMTC502AT temperature sensor object (after) |
Rhyme | 0:774324cbc5a6 | 19 | * @param *temp4 LM75B temperature sensor object (with Color2) |
Rhyme | 0:774324cbc5a6 | 20 | */ |
Rhyme | 0:774324cbc5a6 | 21 | edge_temp(LM75B *temp1, SMTC502AT *temp2, SMTC502AT *temp3, LM75B *temp4) ; |
Rhyme | 0:774324cbc5a6 | 22 | |
Rhyme | 0:774324cbc5a6 | 23 | /** |
Rhyme | 0:774324cbc5a6 | 24 | * destructor |
Rhyme | 0:774324cbc5a6 | 25 | */ |
Rhyme | 0:774324cbc5a6 | 26 | ~edge_temp(void) ; |
Rhyme | 0:774324cbc5a6 | 27 | |
Rhyme | 0:774324cbc5a6 | 28 | /** |
Rhyme | 0:774324cbc5a6 | 29 | * reset and clear the internal values |
Rhyme | 0:774324cbc5a6 | 30 | */ |
Rhyme | 0:774324cbc5a6 | 31 | virtual void reset(void) ; |
Rhyme | 0:774324cbc5a6 | 32 | |
Rhyme | 0:774324cbc5a6 | 33 | /** |
Rhyme | 0:774324cbc5a6 | 34 | * prepare for sampling |
Rhyme | 0:774324cbc5a6 | 35 | */ |
Rhyme | 0:774324cbc5a6 | 36 | virtual void prepare(void) ; |
Rhyme | 0:774324cbc5a6 | 37 | |
Rhyme | 0:774324cbc5a6 | 38 | /** |
Rhyme | 0:774324cbc5a6 | 39 | * sample measure and store sensor values |
Rhyme | 0:774324cbc5a6 | 40 | * @return 0: success non-0: failure |
Rhyme | 0:774324cbc5a6 | 41 | */ |
Rhyme | 0:774324cbc5a6 | 42 | virtual int sample(void) ; |
Rhyme | 0:774324cbc5a6 | 43 | |
Rhyme | 0:774324cbc5a6 | 44 | /** |
Rhyme | 0:774324cbc5a6 | 45 | * deliver the values to the afero cloud |
Rhyme | 0:774324cbc5a6 | 46 | */ |
Rhyme | 0:774324cbc5a6 | 47 | virtual int deliver(void) ; |
Rhyme | 0:774324cbc5a6 | 48 | |
Rhyme | 0:774324cbc5a6 | 49 | /** |
Rhyme | 0:774324cbc5a6 | 50 | * Show the value(s) in the display (TFT) |
Rhyme | 0:774324cbc5a6 | 51 | */ |
Rhyme | 0:774324cbc5a6 | 52 | virtual void show(void) ; |
Rhyme | 0:774324cbc5a6 | 53 | |
Rhyme | 0:774324cbc5a6 | 54 | private: |
Rhyme | 0:774324cbc5a6 | 55 | LM75B *_temp1 ; |
Rhyme | 0:774324cbc5a6 | 56 | SMTC502AT *_temp2 ; |
Rhyme | 0:774324cbc5a6 | 57 | SMTC502AT *_temp3 ; |
Rhyme | 0:774324cbc5a6 | 58 | LM75B *_temp4 ; |
Rhyme | 0:774324cbc5a6 | 59 | float _ftemp[4] ; |
Rhyme | 0:774324cbc5a6 | 60 | } ; |
Rhyme | 0:774324cbc5a6 | 61 | |
Rhyme | 0:774324cbc5a6 | 62 | extern float *current_temp ; |
Rhyme | 0:774324cbc5a6 | 63 | #endif /* _EDGE_TEMP_H_ */ |