Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update SHT3X.h so it can reflect SHT3X.cpp changes
Updated SHT3X with the new variables and init function definition.
- Loading branch information
Showing
1 changed file
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
#ifndef _SHT3X_H_ | ||
#define _SHT3X_H_ | ||
#ifndef __SHT3X_H | ||
#define __HT3X_H | ||
|
||
|
||
#if ARDUINO >= 100 | ||
#include "Arduino.h" | ||
#include "Arduino.h" | ||
#else | ||
#include "WProgram.h" | ||
#include "WProgram.h" | ||
#endif | ||
|
||
#include "Wire.h" | ||
|
||
class SHT3X { | ||
public: | ||
SHT3X(uint8_t address = 0x44, uint8_t deviceType = 0); | ||
byte get(void); | ||
bool detectDevice(); | ||
float cTemp = 0; | ||
float fTemp = 0; | ||
float humidity = 0; | ||
class SHT3X{ | ||
public: | ||
bool init(uint8_t slave_addr_in=0x44, TwoWire* wire_in = &Wire); | ||
byte get(void); | ||
float cTemp=0; | ||
float fTemp=0; | ||
float humidity=0; | ||
|
||
private: | ||
uint8_t _address; | ||
private: | ||
uint8_t _address; | ||
TwoWire* _wire; | ||
}; | ||
|
||
#endif |