Orefatoi
/
afero_poc15_171201
POC1.5 prototype 2 x color sensor 2 x LM75B 3 x AnalogIn 1 x accel
sensors/SMTC502AT.h@13:88ee926c56ae, 2017-12-12 (annotated)
- Committer:
- Rhyme
- Date:
- Tue Dec 12 06:53:12 2017 +0000
- Revision:
- 13:88ee926c56ae
- Parent:
- 0:f0de320e23ac
MCU Reset Reason Attribute added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:f0de320e23ac | 1 | #ifndef _SMTC502AT_H_ |
Rhyme | 0:f0de320e23ac | 2 | #define _SMTC502AT_H_ |
Rhyme | 0:f0de320e23ac | 3 | /* Semitec 502AT-11 temperature sensor */ |
Rhyme | 0:f0de320e23ac | 4 | #include "mbed.h" |
Rhyme | 0:f0de320e23ac | 5 | |
Rhyme | 0:f0de320e23ac | 6 | class SMTC502AT { |
Rhyme | 0:f0de320e23ac | 7 | public: |
Rhyme | 0:f0de320e23ac | 8 | SMTC502AT(AnalogIn *ain, float R0=5.0, float R1=4.95, float B=3324, float T0=298.15) ; |
Rhyme | 0:f0de320e23ac | 9 | ~SMTC502AT(void) ; |
Rhyme | 0:f0de320e23ac | 10 | float getTemp(void) ; |
Rhyme | 0:f0de320e23ac | 11 | private: |
Rhyme | 0:f0de320e23ac | 12 | AnalogIn *_ain ; |
Rhyme | 0:f0de320e23ac | 13 | float _r0 ; |
Rhyme | 0:f0de320e23ac | 14 | float _r1 ; |
Rhyme | 0:f0de320e23ac | 15 | float _b ; |
Rhyme | 0:f0de320e23ac | 16 | float _t0 ; |
Rhyme | 0:f0de320e23ac | 17 | } ; |
Rhyme | 0:f0de320e23ac | 18 | |
Rhyme | 0:f0de320e23ac | 19 | #endif /* _SMTC502AT_H_ */ |