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

Method begin

libraries/PCF8574/PCF8574.cpp:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27#if defined (ESP8266) || defined(ESP32)
28bool PCF8574::begin(int dataPin, int clockPin, uint8_t value)
29{
30 _wire = &Wire;
31 if ((dataPin < 255) && (clockPin < 255))
32 {
33 _wire->begin(dataPin, clockPin);
34 } else {
35 _wire->begin();
36 }
37 if (! isConnected()) return false;
38 PCF8574::write8(value);
39 return true;
40}
41#endif
42
43

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36