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

Method begin

libraries/MSP300/MSP300.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22#if defined (ESP8266) || defined(ESP32)
23bool MSP300::begin(int dataPin, int clockPin, int maxValue)
24{
25 _wire = &Wire;
26 if ((dataPin < 255) && (clockPin < 255))
27 {
28 _wire->begin(dataPin, clockPin);
29 } else {
30 _wire->begin();
31 }
32 if (! isConnected()) return false;
33 _maxValue = maxValue;
34 return true;
35}
36#endif
37
38

Callers 4

unittestFunction · 0.45
Max44009Method · 0.45
configureMethod · 0.45
unittestFunction · 0.45

Calls

no outgoing calls

Tested by 2

unittestFunction · 0.36
unittestFunction · 0.36