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

Method begin

libraries/TCA9548/TCA9548.cpp:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23#if defined (ESP8266) || defined(ESP32)
24bool TCA9548::begin(uint8_t dataPin, uint8_t clockPin, uint8_t mask)
25{
26 if ((dataPin < 255) && (clockPin < 255))
27 {
28 _wire->begin(dataPin, clockPin);
29 } else {
30 _wire->begin();
31 }
32 if (! isConnected()) return false;
33 setChannelMask(mask);
34 return true;
35}
36#endif
37
38

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36