Skip to content

Commit

Permalink
Update SHT3X.h so it can reflect SHT3X.cpp changes
Browse files Browse the repository at this point in the history
Updated SHT3X with the new variables and init function definition.
  • Loading branch information
maesoser committed May 7, 2023
1 parent 731764f commit 471f686
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/SHT3X.h
@@ -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

0 comments on commit 471f686

Please sign in to comment.