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

Method begin

libraries/MT8870/MT8870.cpp:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14void MT8870::begin(uint8_t STQ, uint8_t Q1, uint8_t Q2, uint8_t Q3, uint8_t Q4)
15{
16 _STQ = STQ;
17 _q[0] = Q1;
18 _q[1] = Q2;
19 _q[2] = Q3;
20 _q[3] = Q4;
21 for (uint8_t p = 0; p < 4; p++)
22 {
23 pinMode(_q[p], INPUT); // PULLUP ?
24 }
25 pinMode(_STQ, INPUT);
26}
27
28
29bool MT8870::available()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36