-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLM35.h
44 lines (33 loc) · 766 Bytes
/
LM35.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* @ Sensor de temperatura LM35
*
* @ Characteristics
* - Temperature Maximum: 150 ° C
* - Temperature Low: -55 ° C
* - Temperature Heating: + - 00:08 ºC
* - Voltagemde operation: 4V to 30V
* - Operating amperage: 60μ ampere (0.000060).
*
* @ Developer by RodriguesFAS
* @ Date: 24 de setember de 2015
* @ Version: 1.0.0
* @ License: MIT
* @ Web site: <https://rodriguesfas.github.io>
* @ Email: [email protected]
*/
#ifndef __LM35__
#define __LM35__
#include "Arduino.h"
class LM35 {
int _pin;
public:
LM35(int pin);
~LM35();
double readCelsius();
double readCelsius(int times);
double readFahrenheit();
double readFahrenheit(int times);
double readKelvin();
double readKelvin(int times);
};
#endif