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

Revision:
0:774324cbc5a6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sensors/SMTC502AT.cpp	Fri Mar 02 07:56:09 2018 +0000
@@ -0,0 +1,47 @@
+#include "mbed.h"
+#include "SMTC502AT.h"
+
+SMTC502AT::SMTC502AT(AnalogIn *ain, float R0, float R1, float B, float T0) 
+{
+    _ain = ain ;
+    _r0 = R0 ;
+    _r1 = R1 ;
+    _b  = B ;
+    _t0 = T0 ;
+}
+
+SMTC502AT::~SMTC502AT(void)
+{
+    if (_ain) {
+        delete _ain ;
+    }
+}
+
+/**
+ * getTemp returns the temperature
+ * operational temperature is -50C to +105C
+ */
+float SMTC502AT::getTemp(void)
+{
+    float result = 0.0 ;
+    float f, raw, rr1, t ;
+    if (_ain) {
+        f = _ain->read() ;
+#if 0
+        if (f < 0.087) { /* +105C */
+            printf("Temp is Too high or the sensor is absent\n") ;
+            f = 0.087 ;
+        }
+        if (f > 0.978) { /* -50C */
+            printf("Temp is Too low or the sensor encountered a problem\n") ;
+            f = 0.978 ;
+        }
+#endif
+        raw = f * 3.3 ;
+        rr1 = _r1 * raw / (3.3 - raw) ;
+        t = 1.0 / (log(rr1 / _r0) / _b + (1/_t0)) ;
+        result = t - 273.15 ;
+    }
+    return( result ) ;
+}
+        
\ No newline at end of file