mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-15 06:53:07 +01:00
1st step for M5 ENV3 iic module support
This commit is contained in:
26
lib/iictask/SHT3X.h
Normal file
26
lib/iictask/SHT3X.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef __SHT3X_H
|
||||
#define __HT3X_H
|
||||
|
||||
|
||||
#if ARDUINO >= 100
|
||||
#include "Arduino.h"
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#endif
|
||||
|
||||
#include "Wire.h"
|
||||
|
||||
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;
|
||||
TwoWire* _wire;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user