Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)
Dependencies: UniGraphic mbed vt100
SMTC502AT Class Reference
Semitec 502AT-11 temperature sensor. More...
#include <SMTC502AT.h>
Public Member Functions | |
| SMTC502AT (AnalogIn *ain, float R0=5.0, float R1=4.95, float B=3324, float T0=298.15) | |
| constructor | |
| ~SMTC502AT (void) | |
| destructor | |
| float | getTemp (void) |
| getTemp get temperature | |
Detailed Description
Semitec 502AT-11 temperature sensor.
Definition at line 10 of file SMTC502AT.h.
Constructor & Destructor Documentation
| SMTC502AT | ( | AnalogIn * | ain, |
| float | R0 = 5.0, |
||
| float | R1 = 4.95, |
||
| float | B = 3324, |
||
| float | T0 = 298.15 |
||
| ) |
constructor
- Parameters:
-
*ain AnalogIn object R0 5.0 ohm (default) R1 4.95 ohm (default) B 3324 (default) T0 298.15 (default)
Definition at line 4 of file SMTC502AT.cpp.
| ~SMTC502AT | ( | void | ) |
destructor
Definition at line 13 of file SMTC502AT.cpp.
Member Function Documentation
| float getTemp | ( | void | ) |
getTemp get temperature
getTemp returns the temperature operational temperature is -50C to +105C
- Returns:
- temperature in float format
Definition at line 24 of file SMTC502AT.cpp.
Generated on Wed Jul 13 2022 12:25:10 by
1.7.2
La Suno