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

Method begin

libraries/MTP40C/MTP40C.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25bool MTP40::begin(uint8_t address)
26{
27 if (address > 247) return false;
28
29 _useAddress = false;
30 _timeout = 100;
31 _lastRead = 0;
32 _airPressureReference = 0;
33 _gasLevel = 0;
34 _address = address;
35 _suppressError = false;
36
37 return isConnected();
38}
39
40
41bool MTP40::isConnected()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36