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

Method begin

libraries/SGP30/SGP30.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33#if defined (ESP8266) || defined(ESP32)
34bool SGP30::begin(uint8_t dataPin, uint8_t clockPin)
35{
36 _wire = &Wire;
37 if ((dataPin < 255) && (clockPin < 255))
38 {
39 _wire->begin(dataPin, clockPin);
40 } else {
41 _wire->begin();
42 }
43 if (! isConnected()) return false;
44 return true;
45}
46#endif
47
48

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36