<divclass="line"><aname="l00064"></a><spanclass="lineno"> 64</span> <spanclass="comment">// Note : this is private as it migh change in the futur</span></div>
<divclass="line"><aname="l00064"></a><spanclass="lineno"> 64</span> <spanclass="comment">// Note : this is private as it migh change in the futur</span></div>
<divclass="line"><aname="l00067"></a><spanclass="lineno"> 67</span> <spanclass="keyword">static</span><spanclass="keyword">const</span> uint8_t UNSTABLE_STATE = 0b00000010;<spanclass="comment">// Actual last state value behind the scene</span></div>
<divclass="line"><aname="l00068"></a><spanclass="lineno"> 68</span> <spanclass="keyword">static</span><spanclass="keyword">const</span> uint8_t CHANGED_STATE = 0b00000100;<spanclass="comment">// The DEBOUNCED_STATE has changed since last update()</span></div>
<divclass="line"><aname="l00070"></a><spanclass="lineno"> 70</span> <spanclass="comment">// Note : this is private as it migh change in the futur</span></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_ab9e2b89ad499fa4b052370140730b6ba"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#ab9e2b89ad499fa4b052370140730b6ba">Bounce2::Button::getPressedState</a></div><divclass="ttdeci">bool getPressedState()</div><divclass="ttdoc">Get the electrical state (HIGH/LOW) that corresponds to a physical press.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:276</div></div>
<divclass="ttc"id="aclass_debouncer_html_a1ef5a04b4ebe97352ff3bb227476035c"><divclass="ttname"><ahref="class_debouncer.html#a1ef5a04b4ebe97352ff3bb227476035c">Debouncer::fell</a></div><divclass="ttdeci">bool fell()</div><divclass="ttdoc">Returns true if pin signal transitions from high to low.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:128</div></div>
<divclass="ttc"id="aclass_debouncer_html_a930bf3945e698d77b889f6309079857d"><divclass="ttname"><ahref="class_debouncer.html#a930bf3945e698d77b889f6309079857d">Debouncer::interval</a></div><divclass="ttdeci">void interval(uint16_t interval_millis)</div><divclass="ttdoc">Sets the debounce interval in milliseconds.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:14</div></div>
<divclass="ttc"id="aclass_debouncer_html_a930bf3945e698d77b889f6309079857d"><divclass="ttname"><ahref="class_debouncer.html#a930bf3945e698d77b889f6309079857d">Debouncer::interval</a></div><divclass="ttdeci">void interval(uint16_t interval_millis)</div><divclass="ttdoc">Sets the debounce interval in milliseconds.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:14</div></div>
<divclass="ttc"id="aclass_debouncer_html_a2cae68910c19c778507f257842fc41bf"><divclass="ttname"><ahref="class_debouncer.html#a2cae68910c19c778507f257842fc41bf">Debouncer::read</a></div><divclass="ttdeci">bool read()</div><divclass="ttdoc">Returns the pin's state (HIGH or LOW).</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:118</div></div>
<divclass="ttc"id="aclass_debouncer_html_ac6af22dc9c6ae84462fe356b7430659e"><divclass="ttname"><ahref="class_debouncer.html#ac6af22dc9c6ae84462fe356b7430659e">Debouncer::previousDuration</a></div><divclass="ttdeci">unsigned long previousDuration() const</div><divclass="ttdoc">Returns the duration in milliseconds of the previous state.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:103</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a1f90c647e0c75d243cdafed16c6eb28c"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a1f90c647e0c75d243cdafed16c6eb28c">Bounce2::Button::getPressedState</a></div><divclass="ttdeci">bool getPressedState() const</div><divclass="ttdoc">Get the electrical state (HIGH/LOW) that corresponds to a physical press.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:306</div></div>
<divclass="ttc"id="aclass_bounce_html_aa62a2e2b5ad0ee6913a95f2f2a0e7606"><divclass="ttname"><ahref="class_bounce.html#aa62a2e2b5ad0ee6913a95f2f2a0e7606">Bounce::Bounce</a></div><divclass="ttdeci">Bounce()</div><divclass="ttdoc">Create an instance of the Bounce class.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:138</div></div>
<divclass="ttc"id="aclass_bounce_html_aa62a2e2b5ad0ee6913a95f2f2a0e7606"><divclass="ttname"><ahref="class_bounce.html#aa62a2e2b5ad0ee6913a95f2f2a0e7606">Bounce::Bounce</a></div><divclass="ttdeci">Bounce()</div><divclass="ttdoc">Create an instance of the Bounce class.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:138</div></div>
<divclass="ttc"id="aclass_debouncer_html_a47c83f13a03920d21fbfafd8469ec06b"><divclass="ttname"><ahref="class_debouncer.html#a47c83f13a03920d21fbfafd8469ec06b">Debouncer::changed</a></div><divclass="ttdeci">bool changed()</div><divclass="ttdoc">Returns true if the state changed on last update.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:129</div></div>
<divclass="ttc"id="aclass_debouncer_html_a462994f1f9a20876b2ee239eeee97448"><divclass="ttname"><ahref="class_debouncer.html#a462994f1f9a20876b2ee239eeee97448">Debouncer::duration</a></div><divclass="ttdeci">unsigned long duration()</div><divclass="ttdoc">DEPRECATED (i.e. do not use). Renamed currentDuration().</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:164</div></div>
<divclass="ttc"id="aclass_debouncer_html_a462994f1f9a20876b2ee239eeee97448"><divclass="ttname"><ahref="class_debouncer.html#a462994f1f9a20876b2ee239eeee97448">Debouncer::duration</a></div><divclass="ttdeci">unsigned long duration()</div><divclass="ttdoc">Returns the duration in milliseconds of the current state.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:107</div></div>
<divclass="ttc"id="aclass_bounce_html_a3ef5b85db62a7a7807f0050c86cc735f"><divclass="ttname"><ahref="class_bounce.html#a3ef5b85db62a7a7807f0050c86cc735f">Bounce::fallingEdge</a></div><divclass="ttdeci">bool fallingEdge() const</div><divclass="ttdoc">Deprecated (i.e. do not use). Included for partial compatibility for programs written with Bounce ver...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:246</div></div>
<divclass="ttc"id="aclass_debouncer_html_a9990de6fa7256842c35c246d7dea8dbb"><divclass="ttname"><ahref="class_debouncer.html#a9990de6fa7256842c35c246d7dea8dbb">Debouncer::rose</a></div><divclass="ttdeci">bool rose()</div><divclass="ttdoc">Returns true if pin signal transitions from low to high.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:123</div></div>
<divclass="ttc"id="aclass_debouncer_html_ab61244e043754ebdc7a156da1e1824bf"><divclass="ttname"><ahref="class_debouncer.html#ab61244e043754ebdc7a156da1e1824bf">Debouncer::rose</a></div><divclass="ttdeci">bool rose() const</div><divclass="ttdoc">Returns true if pin signal transitions from low to high.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:123</div></div>
<divclass="ttc"id="aclass_bounce_html_a1cb79cb0ba2379cd12cc7c098d97053a"><divclass="ttname"><ahref="class_bounce.html#a1cb79cb0ba2379cd12cc7c098d97053a">Bounce::pin</a></div><divclass="ttdeci">uint8_t pin</div><divclass="ttdoc">Deprecated (i.e. do not use). Included for partial compatibility for programs written with Bounce ver...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:225</div></div>
<divclass="ttc"id="aclass_bounce_html_a1cb79cb0ba2379cd12cc7c098d97053a"><divclass="ttname"><ahref="class_bounce.html#a1cb79cb0ba2379cd12cc7c098d97053a">Bounce::pin</a></div><divclass="ttdeci">uint8_t pin</div><divclass="ttdoc">Deprecated (i.e. do not use). Included for partial compatibility for programs written with Bounce ver...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:255</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a902d9df3cd993f80f59bcb205ed4be37"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a902d9df3cd993f80f59bcb205ed4be37">Bounce2::Button::released</a></div><divclass="ttdeci">bool released()</div><divclass="ttdoc">Returns true if the button was physically released</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:297</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a61541ae21354cb7f5cc5bc8c05db59dd"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a61541ae21354cb7f5cc5bc8c05db59dd">Bounce2::Button::pressed</a></div><divclass="ttdeci">bool pressed() const</div><divclass="ttdoc">Returns true if the button was physically pressed</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:320</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a94c31de8109c89d6ee577ed9b14ea676"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a94c31de8109c89d6ee577ed9b14ea676">Bounce2::Button::isPressed</a></div><divclass="ttdeci">bool isPressed()</div><divclass="ttdoc">Returns true if the button is currently physically pressed.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:283</div></div>
<divclass="ttc"id="aclass_debouncer_html_a883645ca26b4df6e5823586432104d11"><divclass="ttname"><ahref="class_debouncer.html#a883645ca26b4df6e5823586432104d11">Debouncer::currentDuration</a></div><divclass="ttdeci">unsigned long currentDuration() const</div><divclass="ttdoc">Returns the duration in milliseconds of the current state.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:107</div></div>
<divclass="ttc"id="aclass_bounce_html_a3417beb80eb6593d768c2e9884c57aa0"><divclass="ttname"><ahref="class_bounce.html#a3417beb80eb6593d768c2e9884c57aa0">Bounce::risingEdge</a></div><divclass="ttdeci">bool risingEdge()</div><divclass="ttdoc">Deprecated (i.e. do not use). Included for partial compatibility for programs written with Bounce ver...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:212</div></div>
<divclass="ttc"id="aclass_debouncer_html_a72f3e8d483555031d2ac21b0b7702c06"><divclass="ttname"><ahref="class_debouncer.html#a72f3e8d483555031d2ac21b0b7702c06">Debouncer::update</a></div><divclass="ttdeci">bool update()</div><divclass="ttdoc">Updates the pin's state.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:32</div></div>
<divclass="ttc"id="aclass_debouncer_html_a72f3e8d483555031d2ac21b0b7702c06"><divclass="ttname"><ahref="class_debouncer.html#a72f3e8d483555031d2ac21b0b7702c06">Debouncer::update</a></div><divclass="ttdeci">bool update()</div><divclass="ttdoc">Updates the pin's state.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:32</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a18710b645862d2b8f058a73aabbaf7ad"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a18710b645862d2b8f058a73aabbaf7ad">Bounce2::Button::Button</a></div><divclass="ttdeci">Button()</div><divclass="ttdoc">Create an instance of the Button class. By default, the pressed state is matched to a HIGH electrical...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:260</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a18710b645862d2b8f058a73aabbaf7ad"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a18710b645862d2b8f058a73aabbaf7ad">Bounce2::Button::Button</a></div><divclass="ttdeci">Button()</div><divclass="ttdoc">Create an instance of the Button class. By default, the pressed state is matched to a HIGH electrical...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:290</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a3fbacfb9a631e03afcfaa5dc39686bad"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a3fbacfb9a631e03afcfaa5dc39686bad">Bounce2::Button::pressed</a></div><divclass="ttdeci">bool pressed()</div><divclass="ttdoc">Returns true if the button was physically pressed</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:290</div></div>
<divclass="ttc"id="aclass_bounce_html"><divclass="ttname"><ahref="class_bounce.html">Bounce</a></div><divclass="ttdoc">The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:184</div></div>
<divclass="ttc"id="aclass_debouncer_html_a89ab95e7ac24874bb8cb684dc36a98b9"><divclass="ttname"><ahref="class_debouncer.html#a89ab95e7ac24874bb8cb684dc36a98b9">Debouncer::previousDuration</a></div><divclass="ttdeci">unsigned long previousDuration()</div><divclass="ttdoc">Returns the duration in milliseconds of the previous state.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:103</div></div>
<divclass="ttc"id="aclass_bounce_html_a114878745aa1f29d3c0c293538280646"><divclass="ttname"><ahref="class_bounce.html#a114878745aa1f29d3c0c293538280646">Bounce::getPin</a></div><divclass="ttdeci">int getPin() const</div><divclass="ttdoc">Return pin that this Bounce is attached to.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:229</div></div>
<divclass="ttc"id="aclass_bounce_html"><divclass="ttname"><ahref="class_bounce.html">Bounce</a></div><divclass="ttdoc">The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:166</div></div>
<divclass="ttc"id="aclass_debouncer_html"><divclass="ttname"><ahref="class_debouncer.html">Debouncer</a></div><divclass="ttdoc">The Debouce class. Just the deboucing code separated from all harware.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:62</div></div>
<divclass="ttc"id="aclass_debouncer_html"><divclass="ttname"><ahref="class_debouncer.html">Debouncer</a></div><divclass="ttdoc">The Debouce class. Just the deboucing code separated from all harware.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:62</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a3c88b7938b26bca9dc2c7e72aedc442e"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a3c88b7938b26bca9dc2c7e72aedc442e">Bounce2::Button::setPressedState</a></div><divclass="ttdeci">void setPressedState(bool state)</div><divclass="ttdoc">Set the electrical state (HIGH/LOW) that corresponds to a physical press. By default,...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:269</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a3c88b7938b26bca9dc2c7e72aedc442e"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a3c88b7938b26bca9dc2c7e72aedc442e">Bounce2::Button::setPressedState</a></div><divclass="ttdeci">void setPressedState(bool state)</div><divclass="ttdoc">Set the electrical state (HIGH/LOW) that corresponds to a physical press. By default,...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:299</div></div>
<divclass="ttc"id="aclass_bounce_html_ac756559419bfa1c5060e5e4a4ad6406f"><divclass="ttname"><ahref="class_bounce.html#ac756559419bfa1c5060e5e4a4ad6406f">Bounce::fallingEdge</a></div><divclass="ttdeci">bool fallingEdge()</div><divclass="ttdoc">Deprecated (i.e. do not use). Included for partial compatibility for programs written with Bounce ver...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:216</div></div>
<divclass="ttc"id="aclass_debouncer_html_a80315de311b855f9787b4b6d5b7899e0"><divclass="ttname"><ahref="class_debouncer.html#a80315de311b855f9787b4b6d5b7899e0">Debouncer::fell</a></div><divclass="ttdeci">bool fell() const</div><divclass="ttdoc">Returns true if pin signal transitions from high to low.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:128</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_ae9bc1365cf132e57feda6dff112edbad"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#ae9bc1365cf132e57feda6dff112edbad">Bounce2::Button::released</a></div><divclass="ttdeci">bool released() const</div><divclass="ttdoc">Returns true if the button was physically released</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:327</div></div>
<divclass="ttc"id="aclass_bounce_html_aba08e592941465d033e3eba3dde66eaf"><divclass="ttname"><ahref="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">Bounce::attach</a></div><divclass="ttdeci">void attach(int pin, int mode)</div><divclass="ttdoc">Attach to a pin and sets that pin's mode (INPUT, INPUT_PULLUP or OUTPUT).</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:149</div></div>
<divclass="ttc"id="aclass_bounce_html_aba08e592941465d033e3eba3dde66eaf"><divclass="ttname"><ahref="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">Bounce::attach</a></div><divclass="ttdeci">void attach(int pin, int mode)</div><divclass="ttdoc">Attach to a pin and sets that pin's mode (INPUT, INPUT_PULLUP or OUTPUT).</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:149</div></div>
<divclass="ttc"id="anamespace_bounce2_html"><divclass="ttname"><ahref="namespace_bounce2.html">Bounce2</a></div><divclass="ttdoc">The Debouncer:Bounce:Button class. The Button class matches an electrical state to a physical action.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:243</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a73c7c9ef574afe8bf1a9f3eb492bfa7f"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a73c7c9ef574afe8bf1a9f3eb492bfa7f">Bounce2::Button::isPressed</a></div><divclass="ttdeci">bool isPressed() const</div><divclass="ttdoc">Returns true if the button is currently physically pressed.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:313</div></div>
<divclass="ttc"id="aclass_debouncer_html_aa5fcde9156f700c362fd49af5dd92ecd"><divclass="ttname"><ahref="class_debouncer.html#aa5fcde9156f700c362fd49af5dd92ecd">Debouncer::read</a></div><divclass="ttdeci">bool read() const</div><divclass="ttdoc">Returns the pin's state (HIGH or LOW).</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:118</div></div>
<divclass="ttc"id="aclass_bounce_html_adff02eed264355c2bf90d131768f84c2"><divclass="ttname"><ahref="class_bounce.html#adff02eed264355c2bf90d131768f84c2">Bounce::risingEdge</a></div><divclass="ttdeci">bool risingEdge() const</div><divclass="ttdoc">Deprecated (i.e. do not use). Included for partial compatibility for programs written with Bounce ver...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:241</div></div>
<divclass="ttc"id="aclass_debouncer_html_a1bbd627f9d8809b5ee9e64e9fb21e248"><divclass="ttname"><ahref="class_debouncer.html#a1bbd627f9d8809b5ee9e64e9fb21e248">Debouncer::changed</a></div><divclass="ttdeci">bool changed() const</div><divclass="ttdoc">Returns true if the state changed on last update.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:130</div></div>
<divclass="ttc"id="anamespace_bounce2_html"><divclass="ttname"><ahref="namespace_bounce2.html">Bounce2</a></div><divclass="ttdoc">The Debouncer:Bounce:Button class. The Button class matches an electrical state to a physical action.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:273</div></div>
<divclass="ttc"id="aclass_debouncer_html_a34c46ca04d4178933cc0049436d10fe6"><divclass="ttname"><ahref="class_debouncer.html#a34c46ca04d4178933cc0049436d10fe6">Debouncer::Debouncer</a></div><divclass="ttdeci">Debouncer()</div><divclass="ttdoc">Create an instance of the Debounce class.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:10</div></div>
<divclass="ttc"id="aclass_debouncer_html_a34c46ca04d4178933cc0049436d10fe6"><divclass="ttname"><ahref="class_debouncer.html#a34c46ca04d4178933cc0049436d10fe6">Debouncer::Debouncer</a></div><divclass="ttdeci">Debouncer()</div><divclass="ttdoc">Create an instance of the Debounce class.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:10</div></div>
<trid="row_0_"class="even"><tdclass="entry"><spanstyle="width:0px;display:inline-block;"> </span><spanid="arr_0_"class="arrow"onclick="toggleFolder('0_')">▼</span><spanclass="icona"><spanclass="icon">N</span></span><aclass="el"href="namespace_bounce2.html"target="_self">Bounce2</a></td><tdclass="desc">The Debouncer:Bounce:<aclass="el"href="class_bounce2_1_1_button.html">Button</a> class. The <aclass="el"href="class_bounce2_1_1_button.html">Button</a> class matches an electrical state to a physical action </td></tr>
<trid="row_0_"class="even"><tdclass="entry"><spanstyle="width:0px;display:inline-block;"> </span><spanid="arr_0_"class="arrow"onclick="toggleFolder('0_')">▼</span><spanclass="icona"><spanclass="icon">N</span></span><aclass="el"href="namespace_bounce2.html"target="_self">Bounce2</a></td><tdclass="desc">The Debouncer:Bounce:<aclass="el"href="class_bounce2_1_1_button.html">Button</a> class. The <aclass="el"href="class_bounce2_1_1_button.html">Button</a> class matches an electrical state to a physical action </td></tr>
<trid="row_1_"class="even"><tdclass="entry"><spanstyle="width:16px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el"href="class_bounce.html"target="_self">Bounce</a></td><tdclass="desc">The <aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a>:<aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> class. Links the Deboucing class to a hardware pin </td></tr>
<trid="row_1_"class="even"><tdclass="entry"><spanstyle="width:16px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el"href="class_bounce.html"target="_self">Bounce</a></td><tdclass="desc">The <aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a>:<aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> class. Links the Deboucing class to a hardware pin. This class is odly named, but it will be kept that so it stays compatible with previous code</td></tr>
<trid="row_2_"><tdclass="entry"><spanstyle="width:16px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el"href="class_debouncer.html"target="_self">Debouncer</a></td><tdclass="desc">The Debouce class. Just the deboucing code separated from all harware </td></tr>
<trid="row_2_"><tdclass="entry"><spanstyle="width:16px;display:inline-block;"> </span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el"href="class_debouncer.html"target="_self">Debouncer</a></td><tdclass="desc">The Debouce class. Just the deboucing code separated from all harware </td></tr>
<p>Basic example of the <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> class.</p>
<p>Basic example of the <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> class.</p>
<divclass="fragment"><divclass="line"></div>
<divclass="fragment"><divclass="line"></div>
<divclass="line">/*</div>
<divclass="line">/*</div>
<divclass="line"> DESCRIPTION</div>
<divclass="line"> DESCRIPTION</div>
@ -104,9 +104,9 @@ $(function() {
<divclass="line"></div>
<divclass="line"></div>
<divclass="line"> // SELECT ONE OF THE FOLLOWING :</div>
<divclass="line"> // SELECT ONE OF THE FOLLOWING :</div>
<divclass="line"> // 1) IF YOUR INPUT HAS AN INTERNAL PULL-UP</div>
<divclass="line"> // 1) IF YOUR INPUT HAS AN INTERNAL PULL-UP</div>
<divclass="line">// bounce.attach( BOUNCE_PIN , INPUT_PULLUP ); // USE INTERNAL PULL-UP</div>
<divclass="line"> bounce.attach( BOUNCE_PIN , INPUT_PULLUP ); // USE INTERNAL PULL-UP</div>
<divclass="line"> // 2) IF YOUR INPUT USES AN EXTERNAL PULL-UP</div>
<divclass="line"> // 2) IF YOUR INPUT USES AN EXTERNAL PULL-UP</div>
<divclass="line"> bounce.attach( BOUNCE_PIN, INPUT ); // USE EXTERNAL PULL-UP</div>
<divclass="line">//bounce.attach( BOUNCE_PIN, INPUT ); // USE EXTERNAL PULL-UP</div>
<divclass="line"></div>
<divclass="line"></div>
<divclass="line"> // DEBOUNCE INTERVAL IN MILLISECONDS</div>
<divclass="line"> // DEBOUNCE INTERVAL IN MILLISECONDS</div>
<divclass="line"> bounce.interval(5); // interval in ms</div>
<divclass="line"> bounce.interval(5); // interval in ms</div>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>begin</b>() (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>begin</b>() (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>Bounce</b>(uint8_t pin, unsigned long interval_millis) (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>Bounce</b>(uint8_t pin, unsigned long interval_millis) (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>durationOfPreviousState</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>durationOfPreviousState</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>interval_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>interval_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>previous_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>previous_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>readCurrentState</b>() (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span><spanclass="mlabel">protected</span><spanclass="mlabel">virtual</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>readCurrentState</b>() (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span><spanclass="mlabel">protected</span><spanclass="mlabel">virtual</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>setPinMode</b>(int pin, int mode) (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span><spanclass="mlabel">protected</span><spanclass="mlabel">virtual</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>setPinMode</b>(int pin, int mode) (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span><spanclass="mlabel">protected</span><spanclass="mlabel">virtual</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>state</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>state</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>stateChangeLastTime</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>stateChangeLastTime</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<p>The <aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a>:<aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> class. Links the Deboucing class to a hardware pin.
<p>The <aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a>:<aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> class. Links the Deboucing class to a hardware pin. This class is odly named, but it will be kept that so it stays compatible with previous code.
<trclass="memdesc:aa62a2e2b5ad0ee6913a95f2f2a0e7606"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Create an instance of the <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> class. <ahref="class_bounce.html#aa62a2e2b5ad0ee6913a95f2f2a0e7606">More...</a><br/></td></tr>
<trclass="memdesc:aa62a2e2b5ad0ee6913a95f2f2a0e7606"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Create an instance of the <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> class. <ahref="class_bounce.html#aa62a2e2b5ad0ee6913a95f2f2a0e7606">More...</a><br/></td></tr>
<trclass="memitem:aba08e592941465d033e3eba3dde66eaf"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">attach</a> (int <aclass="el"href="class_bounce.html#a1cb79cb0ba2379cd12cc7c098d97053a">pin</a>, int mode)</td></tr>
<trclass="memitem:aba08e592941465d033e3eba3dde66eaf"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">attach</a> (int <aclass="el"href="class_bounce.html#a1cb79cb0ba2379cd12cc7c098d97053a">pin</a>, int mode)</td></tr>
<trclass="memdesc:aba08e592941465d033e3eba3dde66eaf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Attach to a pin and sets that pin's mode (INPUT, INPUT_PULLUP or OUTPUT). <ahref="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">More...</a><br/></td></tr>
<trclass="memdesc:aba08e592941465d033e3eba3dde66eaf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Attach to a pin and sets that pin's mode (INPUT, INPUT_PULLUP or OUTPUT). <ahref="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">More...</a><br/></td></tr>
@ -99,14 +99,17 @@ Public Member Functions</h2></td></tr>
<trclass="memdesc:a114878745aa1f29d3c0c293538280646"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Return pin that this <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> is attached to. <ahref="class_bounce.html#a114878745aa1f29d3c0c293538280646">More...</a><br/></td></tr>
<trclass="memdesc:a3417beb80eb6593d768c2e9884c57aa0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> version 1. <br/></td></tr>
<trclass="memdesc:adff02eed264355c2bf90d131768f84c2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> version 1. <br/></td></tr>
<trclass="memdesc:ac756559419bfa1c5060e5e4a4ad6406f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> version 1. <br/></td></tr>
<trclass="memdesc:a3ef5b85db62a7a7807f0050c86cc735f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> version 1. <br/></td></tr>
<trclass="inherit_header pub_methods_class_debouncer"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_class_debouncer')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="class_debouncer.html">Debouncer</a></td></tr>
<trclass="inherit_header pub_methods_class_debouncer"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_class_debouncer')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="class_debouncer.html">Debouncer</a></td></tr>
<trclass="memdesc:a34c46ca04d4178933cc0049436d10fe6 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Create an instance of the Debounce class. <ahref="class_debouncer.html#a34c46ca04d4178933cc0049436d10fe6">More...</a><br/></td></tr>
<trclass="memdesc:a34c46ca04d4178933cc0049436d10fe6 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Create an instance of the Debounce class. <ahref="class_debouncer.html#a34c46ca04d4178933cc0049436d10fe6">More...</a><br/></td></tr>
<trclass="memdesc:a2cae68910c19c778507f257842fc41bf inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the pin's state (HIGH or LOW). <ahref="class_debouncer.html#a2cae68910c19c778507f257842fc41bf">More...</a><br/></td></tr>
<trclass="memdesc:aa5fcde9156f700c362fd49af5dd92ecd inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the pin's state (HIGH or LOW). <ahref="class_debouncer.html#aa5fcde9156f700c362fd49af5dd92ecd">More...</a><br/></td></tr>
<trclass="memdesc:a1ef5a04b4ebe97352ff3bb227476035c inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from high to low. <br/></td></tr>
<trclass="memdesc:a80315de311b855f9787b4b6d5b7899e0 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from high to low. <br/></td></tr>
<trclass="memdesc:a9990de6fa7256842c35c246d7dea8dbb inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from low to high. <br/></td></tr>
<trclass="memdesc:ab61244e043754ebdc7a156da1e1824bf inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from low to high. <br/></td></tr>
<trclass="memdesc:a47c83f13a03920d21fbfafd8469ec06b inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the state changed on last update. <ahref="class_debouncer.html#a47c83f13a03920d21fbfafd8469ec06b">More...</a><br/></td></tr>
<trclass="memdesc:a1bbd627f9d8809b5ee9e64e9fb21e248 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the state changed on last update. <ahref="class_debouncer.html#a1bbd627f9d8809b5ee9e64e9fb21e248">More...</a><br/></td></tr>
<trclass="memdesc:a883645ca26b4df6e5823586432104d11 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the current state. <ahref="class_debouncer.html#a883645ca26b4df6e5823586432104d11">More...</a><br/></td></tr>
<trclass="memdesc:ac6af22dc9c6ae84462fe356b7430659e inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the previous state. <ahref="class_debouncer.html#ac6af22dc9c6ae84462fe356b7430659e">More...</a><br/></td></tr>
<trclass="memdesc:a462994f1f9a20876b2ee239eeee97448 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the current state. <ahref="class_debouncer.html#a462994f1f9a20876b2ee239eeee97448">More...</a><br/></td></tr>
<trclass="memdesc:a462994f1f9a20876b2ee239eeee97448 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">DEPRECATED (i.e. do not use). Renamed <aclass="el"href="class_debouncer.html#a883645ca26b4df6e5823586432104d11"title="Returns the duration in milliseconds of the current state.">currentDuration()</a>. <ahref="class_debouncer.html#a462994f1f9a20876b2ee239eeee97448">More...</a><br/></td></tr>
<trclass="memdesc:a89ab95e7ac24874bb8cb684dc36a98b9 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the previous state. <ahref="class_debouncer.html#a89ab95e7ac24874bb8cb684dc36a98b9">More...</a><br/></td></tr>
<trclass="memdesc:a1cb79cb0ba2379cd12cc7c098d97053a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> version 1. <br/></td></tr>
<trclass="memdesc:a1cb79cb0ba2379cd12cc7c098d97053a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> version 1. <br/></td></tr>
<divclass="textblock"><p>The <aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a>:<aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> class. Links the Deboucing class to a hardware pin. </p>
<divclass="textblock"><p>The <aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a>:<aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> class. Links the Deboucing class to a hardware pin. This class is odly named, but it will be kept that so it stays compatible with previous code. </p>
</div><h2class="groupheader">Constructor & Destructor Documentation</h2>
</div><h2class="groupheader">Constructor & Destructor Documentation</h2>
<p>Create an instance of the <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> class. </p>
<p>Create an instance of the <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> class. </p>
<divclass="fragment"><divclass="line"><spanclass="comment">// Create an instance of the Bounce class.</span></div>
<divclass="fragment"><divclass="line"><spanclass="comment">// Create an instance of the Bounce class.</span></div>
<p>Return pin that this <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> is attached to. </p>
<dlclass="section return"><dt>Returns</dt><dd>integer identifier of the coupled pin </dd></dl>
</div>
</div>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<hr/>The documentation for this class was generated from the following files:<ul>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>Bounce</b>(uint8_t pin, unsigned long interval_millis) (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>Bounce</b>(uint8_t pin, unsigned long interval_millis) (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>durationOfPreviousState</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>durationOfPreviousState</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>interval_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>interval_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>previous_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>previous_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>readCurrentState</b>() (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span><spanclass="mlabel">protected</span><spanclass="mlabel">virtual</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>readCurrentState</b>() (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span><spanclass="mlabel">protected</span><spanclass="mlabel">virtual</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>setPinMode</b>(int pin, int mode) (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span><spanclass="mlabel">protected</span><spanclass="mlabel">virtual</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>setPinMode</b>(int pin, int mode) (defined in <aclass="el"href="class_bounce.html">Bounce</a>)</td><tdclass="entry"><aclass="el"href="class_bounce.html">Bounce</a></td><tdclass="entry"><spanclass="mlabel">inline</span><spanclass="mlabel">protected</span><spanclass="mlabel">virtual</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>state</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>state</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<areahref="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin."alt="Bounce"shape="rect"coords="0,56,103,80"/>
<areahref="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,..."alt="Bounce"shape="rect"coords="0,56,103,80"/>
<areahref="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware."alt="Debouncer"shape="rect"coords="0,0,103,24"/>
<areahref="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware."alt="Debouncer"shape="rect"coords="0,0,103,24"/>
</map>
</map>
</div></div>
</div></div>
@ -92,27 +92,27 @@ Public Member Functions</h2></td></tr>
<trclass="memdesc:a3c88b7938b26bca9dc2c7e72aedc442e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set the electrical state (HIGH/LOW) that corresponds to a physical press. By default, the pressed state is matched to a HIGH electrical level. <ahref="class_bounce2_1_1_button.html#a3c88b7938b26bca9dc2c7e72aedc442e">More...</a><br/></td></tr>
<trclass="memdesc:a3c88b7938b26bca9dc2c7e72aedc442e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set the electrical state (HIGH/LOW) that corresponds to a physical press. By default, the pressed state is matched to a HIGH electrical level. <ahref="class_bounce2_1_1_button.html#a3c88b7938b26bca9dc2c7e72aedc442e">More...</a><br/></td></tr>
<trclass="memdesc:ab9e2b89ad499fa4b052370140730b6ba"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the electrical state (HIGH/LOW) that corresponds to a physical press. <br/></td></tr>
<trclass="memdesc:a1f90c647e0c75d243cdafed16c6eb28c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Get the electrical state (HIGH/LOW) that corresponds to a physical press. <br/></td></tr>
<trclass="memdesc:a94c31de8109c89d6ee577ed9b14ea676"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the button is currently physically pressed. <br/></td></tr>
<trclass="memdesc:a73c7c9ef574afe8bf1a9f3eb492bfa7f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the button is currently physically pressed. <br/></td></tr>
<trclass="memdesc:a3fbacfb9a631e03afcfaa5dc39686bad"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the button was physically pressed <br/>
<trclass="memdesc:a61541ae21354cb7f5cc5bc8c05db59dd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the button was physically pressed <br/>
<trclass="memdesc:a902d9df3cd993f80f59bcb205ed4be37"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the button was physically released <br/>
<trclass="memdesc:ae9bc1365cf132e57feda6dff112edbad"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the button was physically released <br/>
<trclass="inherit_header pub_methods_class_bounce"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_class_bounce')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="class_bounce.html">Bounce</a></td></tr>
<trclass="inherit_header pub_methods_class_bounce"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_class_bounce')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="class_bounce.html">Bounce</a></td></tr>
<trclass="memdesc:aa62a2e2b5ad0ee6913a95f2f2a0e7606 inherit pub_methods_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Create an instance of the <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> class. <ahref="class_bounce.html#aa62a2e2b5ad0ee6913a95f2f2a0e7606">More...</a><br/></td></tr>
<trclass="memdesc:aa62a2e2b5ad0ee6913a95f2f2a0e7606 inherit pub_methods_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Create an instance of the <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> class. <ahref="class_bounce.html#aa62a2e2b5ad0ee6913a95f2f2a0e7606">More...</a><br/></td></tr>
<trclass="memitem:aba08e592941465d033e3eba3dde66eaf inherit pub_methods_class_bounce"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">attach</a> (int <aclass="el"href="class_bounce.html#a1cb79cb0ba2379cd12cc7c098d97053a">pin</a>, int mode)</td></tr>
<trclass="memitem:aba08e592941465d033e3eba3dde66eaf inherit pub_methods_class_bounce"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">attach</a> (int <aclass="el"href="class_bounce.html#a1cb79cb0ba2379cd12cc7c098d97053a">pin</a>, int mode)</td></tr>
<trclass="memdesc:aba08e592941465d033e3eba3dde66eaf inherit pub_methods_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Attach to a pin and sets that pin's mode (INPUT, INPUT_PULLUP or OUTPUT). <ahref="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">More...</a><br/></td></tr>
<trclass="memdesc:aba08e592941465d033e3eba3dde66eaf inherit pub_methods_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Attach to a pin and sets that pin's mode (INPUT, INPUT_PULLUP or OUTPUT). <ahref="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">More...</a><br/></td></tr>
<trclass="memdesc:a114878745aa1f29d3c0c293538280646 inherit pub_methods_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Return pin that this <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> is attached to. <ahref="class_bounce.html#a114878745aa1f29d3c0c293538280646">More...</a><br/></td></tr>
<trclass="memdesc:a3417beb80eb6593d768c2e9884c57aa0 inherit pub_methods_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> version 1. <br/></td></tr>
<trclass="memdesc:adff02eed264355c2bf90d131768f84c2 inherit pub_methods_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> version 1. <br/></td></tr>
<trclass="memdesc:ac756559419bfa1c5060e5e4a4ad6406f inherit pub_methods_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> version 1. <br/></td></tr>
<trclass="memdesc:a3ef5b85db62a7a7807f0050c86cc735f inherit pub_methods_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> version 1. <br/></td></tr>
<trclass="inherit_header pub_methods_class_debouncer"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_class_debouncer')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="class_debouncer.html">Debouncer</a></td></tr>
<trclass="inherit_header pub_methods_class_debouncer"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_class_debouncer')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="class_debouncer.html">Debouncer</a></td></tr>
<trclass="memdesc:a34c46ca04d4178933cc0049436d10fe6 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Create an instance of the Debounce class. <ahref="class_debouncer.html#a34c46ca04d4178933cc0049436d10fe6">More...</a><br/></td></tr>
<trclass="memdesc:a34c46ca04d4178933cc0049436d10fe6 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Create an instance of the Debounce class. <ahref="class_debouncer.html#a34c46ca04d4178933cc0049436d10fe6">More...</a><br/></td></tr>
<trclass="memdesc:a2cae68910c19c778507f257842fc41bf inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the pin's state (HIGH or LOW). <ahref="class_debouncer.html#a2cae68910c19c778507f257842fc41bf">More...</a><br/></td></tr>
<trclass="memdesc:aa5fcde9156f700c362fd49af5dd92ecd inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the pin's state (HIGH or LOW). <ahref="class_debouncer.html#aa5fcde9156f700c362fd49af5dd92ecd">More...</a><br/></td></tr>
<trclass="memdesc:a1ef5a04b4ebe97352ff3bb227476035c inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from high to low. <br/></td></tr>
<trclass="memdesc:a80315de311b855f9787b4b6d5b7899e0 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from high to low. <br/></td></tr>
<trclass="memdesc:a9990de6fa7256842c35c246d7dea8dbb inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from low to high. <br/></td></tr>
<trclass="memdesc:ab61244e043754ebdc7a156da1e1824bf inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from low to high. <br/></td></tr>
<trclass="memdesc:a47c83f13a03920d21fbfafd8469ec06b inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the state changed on last update. <ahref="class_debouncer.html#a47c83f13a03920d21fbfafd8469ec06b">More...</a><br/></td></tr>
<trclass="memdesc:a1bbd627f9d8809b5ee9e64e9fb21e248 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the state changed on last update. <ahref="class_debouncer.html#a1bbd627f9d8809b5ee9e64e9fb21e248">More...</a><br/></td></tr>
<trclass="memdesc:a883645ca26b4df6e5823586432104d11 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the current state. <ahref="class_debouncer.html#a883645ca26b4df6e5823586432104d11">More...</a><br/></td></tr>
<trclass="memdesc:ac6af22dc9c6ae84462fe356b7430659e inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the previous state. <ahref="class_debouncer.html#ac6af22dc9c6ae84462fe356b7430659e">More...</a><br/></td></tr>
<trclass="memdesc:a462994f1f9a20876b2ee239eeee97448 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the current state. <ahref="class_debouncer.html#a462994f1f9a20876b2ee239eeee97448">More...</a><br/></td></tr>
<trclass="memdesc:a462994f1f9a20876b2ee239eeee97448 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">DEPRECATED (i.e. do not use). Renamed <aclass="el"href="class_debouncer.html#a883645ca26b4df6e5823586432104d11"title="Returns the duration in milliseconds of the current state.">currentDuration()</a>. <ahref="class_debouncer.html#a462994f1f9a20876b2ee239eeee97448">More...</a><br/></td></tr>
<trclass="memdesc:a89ab95e7ac24874bb8cb684dc36a98b9 inherit pub_methods_class_debouncer"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the previous state. <ahref="class_debouncer.html#a89ab95e7ac24874bb8cb684dc36a98b9">More...</a><br/></td></tr>
<trclass="memdesc:a1cb79cb0ba2379cd12cc7c098d97053a inherit pro_attribs_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> version 1. <br/></td></tr>
<trclass="memdesc:a1cb79cb0ba2379cd12cc7c098d97053a inherit pro_attribs_class_bounce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deprecated (i.e. do not use). Included for partial compatibility for programs written with <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> version 1. <br/></td></tr>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a18710b645862d2b8f058a73aabbaf7ad"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a18710b645862d2b8f058a73aabbaf7ad">Bounce2::Button::Button</a></div><divclass="ttdeci">Button()</div><divclass="ttdoc">Create an instance of the Button class. By default, the pressed state is matched to a HIGH electrical...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:260</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a18710b645862d2b8f058a73aabbaf7ad"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a18710b645862d2b8f058a73aabbaf7ad">Bounce2::Button::Button</a></div><divclass="ttdeci">Button()</div><divclass="ttdoc">Create an instance of the Button class. By default, the pressed state is matched to a HIGH electrical...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:290</div></div>
<!-- start footer part -->
<!-- start footer part -->
<hrclass="footer"/><addressclass="footer"><small>
<hrclass="footer"/><addressclass="footer"><small>
Generated by  <ahref="http://www.doxygen.org/index.html">
Generated by  <ahref="http://www.doxygen.org/index.html">
<p>This is the complete list of members for <aclass="el"href="class_debouncer.html">Debouncer</a>, including all inherited members.</p>
<p>This is the complete list of members for <aclass="el"href="class_debouncer.html">Debouncer</a>, including all inherited members.</p>
<tableclass="directory">
<tableclass="directory">
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>begin</b>() (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>begin</b>() (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>durationOfPreviousState</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>durationOfPreviousState</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>interval_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>previous_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>interval_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>previous_millis</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>readCurrentState</b>()=0 (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span><spanclass="mlabel">pure virtual</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>readCurrentState</b>()=0 (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span><spanclass="mlabel">pure virtual</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>state</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>stateChangeLastTime</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"class="even"><tdclass="entry"><b>state</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<trbgcolor="#f0f0f0"><tdclass="entry"><b>stateChangeLastTime</b> (defined in <aclass="el"href="class_debouncer.html">Debouncer</a>)</td><tdclass="entry"><aclass="el"href="class_debouncer.html">Debouncer</a></td><tdclass="entry"><spanclass="mlabel">protected</span></td></tr>
<areahref="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin."alt="Bounce"shape="rect"coords="0,56,103,80"/>
<areahref="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,..."alt="Bounce"shape="rect"coords="0,56,103,80"/>
<trclass="memdesc:a72f3e8d483555031d2ac21b0b7702c06"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Updates the pin's state. <ahref="class_debouncer.html#a72f3e8d483555031d2ac21b0b7702c06">More...</a><br/></td></tr>
<trclass="memdesc:a72f3e8d483555031d2ac21b0b7702c06"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Updates the pin's state. <ahref="class_debouncer.html#a72f3e8d483555031d2ac21b0b7702c06">More...</a><br/></td></tr>
<trclass="memdesc:a2cae68910c19c778507f257842fc41bf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the pin's state (HIGH or LOW). <ahref="class_debouncer.html#a2cae68910c19c778507f257842fc41bf">More...</a><br/></td></tr>
<trclass="memdesc:aa5fcde9156f700c362fd49af5dd92ecd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the pin's state (HIGH or LOW). <ahref="class_debouncer.html#aa5fcde9156f700c362fd49af5dd92ecd">More...</a><br/></td></tr>
<trclass="memdesc:a1ef5a04b4ebe97352ff3bb227476035c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from high to low. <br/></td></tr>
<trclass="memdesc:a80315de311b855f9787b4b6d5b7899e0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from high to low. <br/></td></tr>
<trclass="memdesc:a9990de6fa7256842c35c246d7dea8dbb"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from low to high. <br/></td></tr>
<trclass="memdesc:ab61244e043754ebdc7a156da1e1824bf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if pin signal transitions from low to high. <br/></td></tr>
<trclass="memdesc:a47c83f13a03920d21fbfafd8469ec06b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the state changed on last update. <ahref="class_debouncer.html#a47c83f13a03920d21fbfafd8469ec06b">More...</a><br/></td></tr>
<trclass="memdesc:a1bbd627f9d8809b5ee9e64e9fb21e248"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the state changed on last update. <ahref="class_debouncer.html#a1bbd627f9d8809b5ee9e64e9fb21e248">More...</a><br/></td></tr>
<trclass="memdesc:a883645ca26b4df6e5823586432104d11"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the current state. <ahref="class_debouncer.html#a883645ca26b4df6e5823586432104d11">More...</a><br/></td></tr>
<trclass="memdesc:ac6af22dc9c6ae84462fe356b7430659e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the previous state. <ahref="class_debouncer.html#ac6af22dc9c6ae84462fe356b7430659e">More...</a><br/></td></tr>
<trclass="memdesc:a462994f1f9a20876b2ee239eeee97448"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the current state. <ahref="class_debouncer.html#a462994f1f9a20876b2ee239eeee97448">More...</a><br/></td></tr>
<trclass="memdesc:a462994f1f9a20876b2ee239eeee97448"><tdclass="mdescLeft"> </td><tdclass="mdescRight">DEPRECATED (i.e. do not use). Renamed <aclass="el"href="class_debouncer.html#a883645ca26b4df6e5823586432104d11"title="Returns the duration in milliseconds of the current state.">currentDuration()</a>. <ahref="class_debouncer.html#a462994f1f9a20876b2ee239eeee97448">More...</a><br/></td></tr>
<trclass="memdesc:a89ab95e7ac24874bb8cb684dc36a98b9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the duration in milliseconds of the previous state. <ahref="class_debouncer.html#a89ab95e7ac24874bb8cb684dc36a98b9">More...</a><br/></td></tr>
<tdclass="memname">unsigned long Debouncer::currentDuration </td>
<td>(</td>
<tdclass="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><divclass="memdoc">
<p>Returns the duration in milliseconds of the current state. </p>
<p>Is reset to 0 once the pin rises ( <aclass="el"href="class_debouncer.html#ab61244e043754ebdc7a156da1e1824bf"title="Returns true if pin signal transitions from low to high.">rose()</a> ) or falls ( <aclass="el"href="class_debouncer.html#a80315de311b855f9787b4b6d5b7899e0"title="Returns true if pin signal transitions from high to low.">fell()</a> ).</p>
<dlclass="section return"><dt>Returns</dt><dd>The duration in milliseconds (unsigned long) of the current state. </dd></dl>
<p>Returns the duration in milliseconds of the current state. </p>
<p>DEPRECATED (i.e. do not use). Renamed <aclass="el"href="class_debouncer.html#a883645ca26b4df6e5823586432104d11"title="Returns the duration in milliseconds of the current state.">currentDuration()</a>. </p>
<p>Is reset to 0 once the pin rises ( <aclass="el"href="class_debouncer.html#a9990de6fa7256842c35c246d7dea8dbb"title="Returns true if pin signal transitions from low to high.">rose()</a> ) or falls ( <aclass="el"href="class_debouncer.html#a1ef5a04b4ebe97352ff3bb227476035c"title="Returns true if pin signal transitions from high to low.">fell()</a> ).</p>
<p>This member function is DEPRECATED will be removed next major version. DO NOT USE IT. USE<aclass="el"href="class_debouncer.html#a883645ca26b4df6e5823586432104d11"title="Returns the duration in milliseconds of the current state.">currentDuration()</a>INSTEAD. It was renamed to avoid confusion with<aclass="el"href="class_debouncer.html#ac6af22dc9c6ae84462fe356b7430659e"title="Returns the duration in milliseconds of the previous state.">previousDuration()</a>.</p>
<dlclass="section return"><dt>Returns</dt><dd>The duration in milliseconds (unsigned long) of the current state. </dd></dl>
<dlclass="section return"><dt>Returns</dt><dd>The duration in milliseconds (unsigned long) of the current state. </dd></dl>
<tdclass="memname">unsigned long Debouncer::previousDuration </td>
<tdclass="memname">unsigned long Debouncer::previousDuration </td>
<td>(</td>
<td>(</td>
<tdclass="paramname"></td><td>)</td>
<tdclass="paramname"></td><td>)</td>
<td></td>
<td> const</td>
</tr>
</tr>
</table>
</table>
</div><divclass="memdoc">
</div><divclass="memdoc">
<p>Returns the duration in milliseconds of the previous state. </p>
<p>Returns the duration in milliseconds of the previous state. </p>
<p>Takes the values of <aclass="el"href="class_debouncer.html#a462994f1f9a20876b2ee239eeee97448"title="Returns the duration in milliseconds of the current state.">duration()</a> once the pin changes state.</p>
<p>Takes the values of <aclass="el"href="class_debouncer.html#a462994f1f9a20876b2ee239eeee97448"title="DEPRECATED (i.e. do not use). Renamed currentDuration().">duration()</a> once the pin changes state.</p>
<dlclass="section return"><dt>Returns</dt><dd>The duration in milliseconds (unsigned long) of the previous state. </dd></dl>
<dlclass="section return"><dt>Returns</dt><dd>The duration in milliseconds (unsigned long) of the previous state. </dd></dl>
<p>Because <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> does not use interrupts, you have to "update" the object before reading its value and it has to be done as often as possible (that means to include it in your loop()). Only call <aclass="el"href="class_debouncer.html#a72f3e8d483555031d2ac21b0b7702c06"title="Updates the pin's state.">update()</a> once per loop().</p>
<p>Because <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> does not use interrupts, you have to "update" the object before reading its value and it has to be done as often as possible (that means to include it in your loop()). Only call <aclass="el"href="class_debouncer.html#a72f3e8d483555031d2ac21b0b7702c06"title="Updates the pin's state.">update()</a> once per loop().</p>
<dlclass="section return"><dt>Returns</dt><dd>True if the pin changed state. </dd></dl>
<dlclass="section return"><dt>Returns</dt><dd>True if the pin changed state. </dd></dl>
<trid="row_0_"class="even"><tdclass="entry"><spanstyle="width:0px;display:inline-block;"> </span><spanid="arr_0_"class="arrow"onclick="toggleFolder('0_')">▼</span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el"href="class_debouncer.html"target="_self">Debouncer</a></td><tdclass="desc">The Debouce class. Just the deboucing code separated from all harware </td></tr>
<trid="row_0_"class="even"><tdclass="entry"><spanstyle="width:0px;display:inline-block;"> </span><spanid="arr_0_"class="arrow"onclick="toggleFolder('0_')">▼</span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el"href="class_debouncer.html"target="_self">Debouncer</a></td><tdclass="desc">The Debouce class. Just the deboucing code separated from all harware </td></tr>
<trid="row_0_0_"><tdclass="entry"><spanstyle="width:16px;display:inline-block;"> </span><spanid="arr_0_0_"class="arrow"onclick="toggleFolder('0_0_')">▼</span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el"href="class_bounce.html"target="_self">Bounce</a></td><tdclass="desc">The <aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a>:<aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> class. Links the Deboucing class to a hardware pin </td></tr>
<trid="row_0_0_"><tdclass="entry"><spanstyle="width:16px;display:inline-block;"> </span><spanid="arr_0_0_"class="arrow"onclick="toggleFolder('0_0_')">▼</span><spanclass="icona"><spanclass="icon">C</span></span><aclass="el"href="class_bounce.html"target="_self">Bounce</a></td><tdclass="desc">The <aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a>:<aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> class. Links the Deboucing class to a hardware pin. This class is odly named, but it will be kept that so it stays compatible with previous code</td></tr>
<p>See the bottom of this page for a basic usage example and the "examples" folder for more.</p>
<p>See the bottom of this page for a basic usage example and the "examples" folder for more.</p>
<p>The library is composed of three classes:</p><ul>
<p>The library is composed of three classes:</p><ul>
<li><aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a> : The code that does the actual debouncing. Only advanced users should play with this class.</li>
<li><aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a> : The code that does the actual debouncing. Only advanced users should play with this class.</li>
<li><aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> : This is the general use library. It links the <aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a> to a hardware pin on your board.</li>
<li><aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> : This is the general use library. It links the <aclass="el"href="class_debouncer.html"title="The Debouce class. Just the deboucing code separated from all harware.">Debouncer</a> to a hardware pin on your board.</li>
<li>Button : A special version of <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> for buttons that are pressed.</li>
<li>Button : A special version of <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> for buttons that are pressed.</li>
</ul>
</ul>
<h1>INSTALLATION & DOWNLOAD</h1>
<h1>INSTALLATION & DOWNLOAD</h1>
<p>Install through your software's Library Manager or download the latest version <ahref="https://github.com/thomasfredericks/Bounce2/archive/master.zip">here</a> and put the "Bounce2" folder in your "libraries" folder.</p>
<p>Install through your software's Library Manager or download the latest version <ahref="https://github.com/thomasfredericks/Bounce2/archive/master.zip">here</a> and put the "Bounce2" folder in your "libraries" folder.</p>
<p>Please note that the original version of this library (<aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> 1) is included in the "extras" folder of the download but not supported anymore.</p>
<p>Please note that the original version of this library (<aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> 1) is included in the "extras" folder of the download but not supported anymore.</p>
<divclass="line"><spanclass="comment">// DO SOMETHING WITH THE VALUE</span></div>
<divclass="line"><spanclass="comment">// DO SOMETHING WITH THE VALUE</span></div>
<divclass="line">}</div>
<divclass="line">}</div>
</div><!-- fragment --><h2>BOUNCE EXAMPLE</h2>
</div><!-- fragment --><h2>BOUNCE EXAMPLE</h2>
@ -123,7 +123,7 @@ $(function() {
<divclass="line"></div>
<divclass="line"></div>
<divclass="line"> b.<aclass="code"href="class_debouncer.html#a72f3e8d483555031d2ac21b0b7702c06">update</a>(); <spanclass="comment">// Update the Bounce instance</span></div>
<divclass="line"> b.<aclass="code"href="class_debouncer.html#a72f3e8d483555031d2ac21b0b7702c06">update</a>(); <spanclass="comment">// Update the Bounce instance</span></div>
<divclass="line"></div>
<divclass="line"></div>
<divclass="line"><spanclass="keywordflow">if</span> ( b.<aclass="code"href="class_debouncer.html#a1ef5a04b4ebe97352ff3bb227476035c">fell</a>() ) { <spanclass="comment">// Call code if button transitions from HIGH to LOW</span></div>
<divclass="line"><spanclass="keywordflow">if</span> ( b.<aclass="code"href="class_debouncer.html#a80315de311b855f9787b4b6d5b7899e0">fell</a>() ) { <spanclass="comment">// Call code if button transitions from HIGH to LOW</span></div>
<divclass="line"> ledState = !ledState; <spanclass="comment">// Toggle LED state</span></div>
<divclass="line"> ledState = !ledState; <spanclass="comment">// Toggle LED state</span></div>
<divclass="line"> digitalWrite(LED_PIN,ledState); <spanclass="comment">// Apply new LED state</span></div>
<divclass="line"> digitalWrite(LED_PIN,ledState); <spanclass="comment">// Apply new LED state</span></div>
<divclass="line"> }</div>
<divclass="line"> }</div>
@ -137,7 +137,7 @@ $(function() {
<divclass="line"><spanclass="comment"> The Button class matches an electrical state to a physical action. </span></div>
<divclass="line"><spanclass="comment"> The Button class matches an electrical state to a physical action. </span></div>
<divclass="line"><spanclass="comment"> Use .setPressedState(LOW or HIGH) to set the detection state for when the button is pressed.</span></div>
<divclass="line"><spanclass="comment"> Use .setPressedState(LOW or HIGH) to set the detection state for when the button is pressed.</span></div>
<divclass="line"><spanclass="comment">// TOGGLE THE LED STATE : </span></div>
<divclass="line"><spanclass="comment">// TOGGLE THE LED STATE : </span></div>
<divclass="line"> ledState = !ledState; <spanclass="comment">// SET ledState TO THE OPPOSITE OF ledState</span></div>
<divclass="line"> ledState = !ledState; <spanclass="comment">// SET ledState TO THE OPPOSITE OF ledState</span></div>
@ -206,7 +206,7 @@ $(function() {
<p>Please post your questions <ahref="http://forum.arduino.cc/index.php?topic=266132.0">here</a>.</p>
<p>Please post your questions <ahref="http://forum.arduino.cc/index.php?topic=266132.0">here</a>.</p>
<h1>ALTERNATE DEBOUNCE ALGORITHMS FOR ADVANCED USERS AND SPECIFIC CASES</h1>
<h1>ALTERNATE DEBOUNCE ALGORITHMS FOR ADVANCED USERS AND SPECIFIC CASES</h1>
<h2>STABLE INTERVAL</h2>
<h2>STABLE INTERVAL</h2>
<p>By default, the <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.">Bounce</a> library uses a stable interval to process the debouncing. This is simpler to understand and can cancel unwanted noise.</p>
<p>By default, the <aclass="el"href="class_bounce.html"title="The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...">Bounce</a> library uses a stable interval to process the debouncing. This is simpler to understand and can cancel unwanted noise.</p>
<p>By defining "#define BOUNCE_LOCK_OUT" in "Bounce.h" (or in your code before including "Bounce.h") you can activate an alternative debouncing method. This method is a lot more responsive, but does not cancel noise.</p>
<p>By defining "#define BOUNCE_LOCK_OUT" in "Bounce.h" (or in your code before including "Bounce.h") you can activate an alternative debouncing method. This method is a lot more responsive, but does not cancel noise.</p>
<divclass="ttc"id="aclass_debouncer_html_a1ef5a04b4ebe97352ff3bb227476035c"><divclass="ttname"><ahref="class_debouncer.html#a1ef5a04b4ebe97352ff3bb227476035c">Debouncer::fell</a></div><divclass="ttdeci">bool fell()</div><divclass="ttdoc">Returns true if pin signal transitions from high to low.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:128</div></div>
<divclass="ttc"id="aclass_debouncer_html_a930bf3945e698d77b889f6309079857d"><divclass="ttname"><ahref="class_debouncer.html#a930bf3945e698d77b889f6309079857d">Debouncer::interval</a></div><divclass="ttdeci">void interval(uint16_t interval_millis)</div><divclass="ttdoc">Sets the debounce interval in milliseconds.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:14</div></div>
<divclass="ttc"id="aclass_debouncer_html_a930bf3945e698d77b889f6309079857d"><divclass="ttname"><ahref="class_debouncer.html#a930bf3945e698d77b889f6309079857d">Debouncer::interval</a></div><divclass="ttdeci">void interval(uint16_t interval_millis)</div><divclass="ttdoc">Sets the debounce interval in milliseconds.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:14</div></div>
<divclass="ttc"id="aclass_debouncer_html_a2cae68910c19c778507f257842fc41bf"><divclass="ttname"><ahref="class_debouncer.html#a2cae68910c19c778507f257842fc41bf">Debouncer::read</a></div><divclass="ttdeci">bool read()</div><divclass="ttdoc">Returns the pin's state (HIGH or LOW).</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:118</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a61541ae21354cb7f5cc5bc8c05db59dd"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a61541ae21354cb7f5cc5bc8c05db59dd">Bounce2::Button::pressed</a></div><divclass="ttdeci">bool pressed() const</div><divclass="ttdoc">Returns true if the button was physically pressed</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:320</div></div>
<divclass="ttc"id="aclass_debouncer_html_a47c83f13a03920d21fbfafd8469ec06b"><divclass="ttname"><ahref="class_debouncer.html#a47c83f13a03920d21fbfafd8469ec06b">Debouncer::changed</a></div><divclass="ttdeci">bool changed()</div><divclass="ttdoc">Returns true if the state changed on last update.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:129</div></div>
<divclass="ttc"id="aclass_debouncer_html_a72f3e8d483555031d2ac21b0b7702c06"><divclass="ttname"><ahref="class_debouncer.html#a72f3e8d483555031d2ac21b0b7702c06">Debouncer::update</a></div><divclass="ttdeci">bool update()</div><divclass="ttdoc">Updates the pin's state.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:32</div></div>
<divclass="ttc"id="aclass_debouncer_html_a72f3e8d483555031d2ac21b0b7702c06"><divclass="ttname"><ahref="class_debouncer.html#a72f3e8d483555031d2ac21b0b7702c06">Debouncer::update</a></div><divclass="ttdeci">bool update()</div><divclass="ttdoc">Updates the pin's state.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:32</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a3fbacfb9a631e03afcfaa5dc39686bad"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a3fbacfb9a631e03afcfaa5dc39686bad">Bounce2::Button::pressed</a></div><divclass="ttdeci">bool pressed()</div><divclass="ttdoc">Returns true if the button was physically pressed</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:290</div></div>
<divclass="ttc"id="aclass_bounce_html"><divclass="ttname"><ahref="class_bounce.html">Bounce</a></div><divclass="ttdoc">The Debouncer:Bounce class. Links the Deboucing class to a hardware pin. This class is odly named,...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:184</div></div>
<divclass="ttc"id="aclass_bounce_html"><divclass="ttname"><ahref="class_bounce.html">Bounce</a></div><divclass="ttdoc">The Debouncer:Bounce class. Links the Deboucing class to a hardware pin.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:166</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a3c88b7938b26bca9dc2c7e72aedc442e"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a3c88b7938b26bca9dc2c7e72aedc442e">Bounce2::Button::setPressedState</a></div><divclass="ttdeci">void setPressedState(bool state)</div><divclass="ttdoc">Set the electrical state (HIGH/LOW) that corresponds to a physical press. By default,...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:299</div></div>
<divclass="ttc"id="aclass_bounce2_1_1_button_html_a3c88b7938b26bca9dc2c7e72aedc442e"><divclass="ttname"><ahref="class_bounce2_1_1_button.html#a3c88b7938b26bca9dc2c7e72aedc442e">Bounce2::Button::setPressedState</a></div><divclass="ttdeci">void setPressedState(bool state)</div><divclass="ttdoc">Set the electrical state (HIGH/LOW) that corresponds to a physical press. By default,...</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:269</div></div>
<divclass="ttc"id="aclass_debouncer_html_a80315de311b855f9787b4b6d5b7899e0"><divclass="ttname"><ahref="class_debouncer.html#a80315de311b855f9787b4b6d5b7899e0">Debouncer::fell</a></div><divclass="ttdeci">bool fell() const</div><divclass="ttdoc">Returns true if pin signal transitions from high to low.</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:128</div></div>
<divclass="ttc"id="aclass_bounce_html_aba08e592941465d033e3eba3dde66eaf"><divclass="ttname"><ahref="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">Bounce::attach</a></div><divclass="ttdeci">void attach(int pin, int mode)</div><divclass="ttdoc">Attach to a pin and sets that pin's mode (INPUT, INPUT_PULLUP or OUTPUT).</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:149</div></div>
<divclass="ttc"id="aclass_bounce_html_aba08e592941465d033e3eba3dde66eaf"><divclass="ttname"><ahref="class_bounce.html#aba08e592941465d033e3eba3dde66eaf">Bounce::attach</a></div><divclass="ttdeci">void attach(int pin, int mode)</div><divclass="ttdoc">Attach to a pin and sets that pin's mode (INPUT, INPUT_PULLUP or OUTPUT).</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:149</div></div>
<divclass="ttc"id="aclass_debouncer_html_aa5fcde9156f700c362fd49af5dd92ecd"><divclass="ttname"><ahref="class_debouncer.html#aa5fcde9156f700c362fd49af5dd92ecd">Debouncer::read</a></div><divclass="ttdeci">bool read() const</div><divclass="ttdoc">Returns the pin's state (HIGH or LOW).</div><divclass="ttdef"><b>Definition:</b> Bounce2.cpp:118</div></div>
<divclass="ttc"id="aclass_debouncer_html_a1bbd627f9d8809b5ee9e64e9fb21e248"><divclass="ttname"><ahref="class_debouncer.html#a1bbd627f9d8809b5ee9e64e9fb21e248">Debouncer::changed</a></div><divclass="ttdeci">bool changed() const</div><divclass="ttdoc">Returns true if the state changed on last update.</div><divclass="ttdef"><b>Definition:</b> Bounce2.h:130</div></div>
<!-- start footer part -->
<!-- start footer part -->
<hrclass="footer"/><addressclass="footer"><small>
<hrclass="footer"/><addressclass="footer"><small>
Generated by  <ahref="http://www.doxygen.org/index.html">
Generated by  <ahref="http://www.doxygen.org/index.html">
['attach_26',['attach',['../class_bounce.html#aba08e592941465d033e3eba3dde66eaf',1,'Bounce::attach(int pin, int mode)'],['../class_bounce.html#a163477dbcbaf1a3dee6cb3b62eedf09e',1,'Bounce::attach(int pin)']]]
['attach_28',['attach',['../class_bounce.html#aba08e592941465d033e3eba3dde66eaf',1,'Bounce::attach(int pin, int mode)'],['../class_bounce.html#a163477dbcbaf1a3dee6cb3b62eedf09e',1,'Bounce::attach(int pin)']]]