1
0
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:
andreas
2023-10-26 21:44:47 +02:00
parent 8266fba42a
commit 62124cb22d
5 changed files with 229 additions and 1 deletions

26
lib/iictask/SHT3X.h Normal file
View 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