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

Method begin

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

Source from the content-addressed store, hash-verified

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

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36