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

Method begin

libraries/I2C_ASDX/I2C_ASDX.cpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28#if defined (ESP8266) || defined(ESP32)
29bool I2C_ASDX::begin(uint8_t sda, uint8_t scl)
30{
31 reset();
32 _wire = &Wire;
33 _wire->begin(sda, scl);
34 if (! isConnected())
35 {
36 _state = I2C_ASDX_CONNECT_ERROR;
37 return false;
38 }
39 _state = I2C_ASDX_OK;
40 return true;
41}
42#endif
43
44

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36