File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
1
+ 2011-09-20
2
+ * Conditionally include Arduino.h for compatibility with Arduino 1.0
3
+
1
4
2010-07-23
2
5
* Added SHT7x to list of supported sensors.
3
6
* Fixed temperature offset in humidity calculation.
Original file line number Diff line number Diff line change 9
9
* Manages communication with SHT1x series (SHT10, SHT11, SHT15)
10
10
* temperature / humidity sensors from Sensirion (www.sensirion.com).
11
11
*/
12
- #include " WProgram.h"
12
+ #if (ARDUINO >= 100)
13
+ #include < Arduino.h>
14
+ #else
15
+ #include < WProgram.h>
16
+ #endif
17
+
13
18
#include " SHT1x.h"
14
19
15
20
SHT1x::SHT1x (int dataPin, int clockPin)
Original file line number Diff line number Diff line change 12
12
#ifndef SHT1x_h
13
13
#define SHT1x_h
14
14
15
- #include " WProgram.h"
15
+ #if (ARDUINO >= 100)
16
+ #include < Arduino.h>
17
+ #else
18
+ #include < WProgram.h>
19
+ #endif
16
20
17
21
class SHT1x
18
22
{
You can’t perform that action at this time.
0 commit comments