MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / begin

Method begin

libraries/SHT85/SHT85.cpp:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45#if defined(ESP8266) || defined(ESP32)
46bool SHT::begin(const uint8_t address, const uint8_t dataPin, const uint8_t clockPin)
47{
48 if ((address != 0x44) && (address != 0x45))
49 {
50 return false;
51 }
52 _address = address;
53
54 _wire = &Wire;
55 if ((dataPin < 255) && (clockPin < 255))
56 {
57 _wire->begin(dataPin, clockPin);
58 } else {
59 _wire->begin();
60 }
61 return reset();
62}
63
64
65bool SHT::begin(const uint8_t dataPin, const uint8_t clockPin)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36