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

Method begin

libraries/PCF8591/PCF8591.cpp:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36