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

Method begin

libraries/SHT2x/SHT2x.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55#if defined(ESP8266) || defined(ESP32)
56bool SHT2x::begin(const int dataPin, const int clockPin)
57{
58 _wire = &Wire;
59 if ((dataPin < 255) && (clockPin < 255))
60 {
61 _wire->begin(dataPin, clockPin);
62 } else {
63 _wire->begin();
64 }
65 return reset();
66}
67#endif
68
69

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36