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

Method begin

libraries/AD5144A/AD5144A.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31#if defined (ESP8266) || defined(ESP32)
32bool AD51XX::begin(int dataPin, int clockPin, bool doReset)
33{
34 _wire = &Wire;
35 if ((dataPin < 255) && (clockPin < 255))
36 {
37 _wire->begin(dataPin, clockPin);
38 } else {
39 _wire->begin();
40 }
41 if (! isConnected()) return false;
42 if (doReset) reset(); // See page 28 datasheet
43 return true;
44}
45#endif
46
47

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36