POC1.5 prototype 2 x color sensor 2 x LM75B 3 x AnalogIn 1 x accel

Dependencies:   mbed vt100

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SMTC502AT.h Source File

SMTC502AT.h

00001 #ifndef _SMTC502AT_H_
00002 #define _SMTC502AT_H_
00003 /* Semitec 502AT-11 temperature sensor */
00004 #include "mbed.h"
00005 
00006 class SMTC502AT {
00007 public:
00008     SMTC502AT(AnalogIn *ain, float R0=5.0, float R1=4.95, float B=3324, float T0=298.15) ;
00009     ~SMTC502AT(void) ;
00010     float getTemp(void) ;
00011 private:
00012     AnalogIn *_ain ;
00013     float _r0 ;
00014     float _r1 ;
00015     float _b ;
00016     float _t0 ;
00017 } ;
00018 
00019 #endif /* _SMTC502AT_H_ */