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

Method begin

libraries/AGS02MA/AGS02MA.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29#if defined (ESP8266) || defined(ESP32)
30bool AGS02MA::begin(uint8_t dataPin, uint8_t clockPin)
31{
32 _startTime = millis(); // PREHEAT
33 _wire = &Wire;
34 if ((dataPin < 255) && (clockPin < 255))
35 {
36 _wire->begin(dataPin, clockPin);
37 } else {
38 _wire->begin();
39 }
40 return isConnected();
41}
42#endif
43
44

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36