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
Diff: sensors/SMTC502AT.h
- Revision:
- 0:774324cbc5a6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sensors/SMTC502AT.h Fri Mar 02 07:56:09 2018 +0000 @@ -0,0 +1,40 @@ +#ifndef _SMTC502AT_H_ +#define _SMTC502AT_H_ + +#include "mbed.h" + +/** + * Semitec 502AT-11 temperature sensor + */ + +class SMTC502AT { +public: +/** + * constructor + * @param *ain AnalogIn object + * @param R0 5.0 ohm (default) + * @param R1 4.95 ohm (default) + * @param B 3324 (default) + * @param T0 298.15 (default) + */ + SMTC502AT(AnalogIn *ain, float R0=5.0, float R1=4.95, float B=3324, float T0=298.15) ; + +/** + * destructor + */ + ~SMTC502AT(void) ; + +/** + * getTemp get temperature + * @returns temperature in float format + */ + float getTemp(void) ; +private: + AnalogIn *_ain ; + float _r0 ; + float _r1 ; + float _b ; + float _t0 ; +} ; + +#endif /* _SMTC502AT_H_ */ \ No newline at end of file