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

Method begin

libraries/MAX14661/MAX14661.cpp:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38#if defined (ESP8266) || defined(ESP32)
39bool MAX14661::begin(uint8_t dataPin, uint8_t clockPin)
40{
41 _wire = &Wire;
42 if ((dataPin < 255) && (clockPin < 255))
43 {
44 _wire->begin(dataPin, clockPin);
45 } else {
46 _wire->begin();
47 }
48 _error = 0;
49 if (! isConnected()) return false;
50 return true;
51}
52#endif
53
54

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36