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

Method begin

libraries/PCA9635/PCA9635.cpp:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25#if defined (ESP8266) || defined(ESP32)
26bool PCA9635::begin(int sda, int scl, uint8_t mode1_mask, uint8_t mode2_mask)
27{
28 _wire = &Wire;
29 if ((sda < 255) && (scl < 255))
30 {
31 _wire->begin(sda, scl);
32 } else {
33 _wire->begin();
34 }
35 if (! isConnected()) return false;
36 configure(mode1_mask, mode2_mask);
37 return true;
38}
39#endif
40
41

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36