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

Method begin

libraries/AD5245/AD5245.cpp:27–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26#if defined (ESP8266) || defined(ESP32)
27bool AD5245::begin(uint8_t dataPin, uint8_t clockPin)
28{
29 _wire = &Wire;
30 if ((dataPin < 255) && (clockPin < 255))
31 {
32 _wire->begin(dataPin, clockPin);
33 } else {
34 _wire->begin();
35 }
36 if (! isConnected()) return false;
37 reset();
38 return true;
39}
40#endif
41
42

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36