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

Method begin

libraries/ADS1x15/ADS1X15.cpp:143–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142#if defined (ESP8266) || defined(ESP32)
143bool ADS1X15::begin(int sda, int scl)
144{
145 _wire = &Wire;
146 _wire->begin(sda, scl);
147 if ((_address < 0x48) || (_address > 0x4B)) return false;
148 if (! isConnected()) return false;
149 return true;
150}
151#endif
152
153#if defined (ARDUINO_ARCH_RP2040)

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36