Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: IRLED_SendReceveDemo IRreceiver_PulseWidth
Revision 3:b2a1f396ee27, committed 2017-02-16
- Comitter:
- nameless129
- Date:
- Thu Feb 16 02:07:26 2017 +0000
- Parent:
- 2:674f9ea95a5a
- Commit message:
- input Pin:enable pullup
Changed in this revision
IRRcevPulseWidth.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 674f9ea95a5a -r b2a1f396ee27 IRRcevPulseWidth.cpp --- a/IRRcevPulseWidth.cpp Fri Dec 30 04:57:18 2016 +0000 +++ b/IRRcevPulseWidth.cpp Thu Feb 16 02:07:26 2017 +0000 @@ -8,6 +8,7 @@ cIRRceved = 0; IRRcevState_prev = 1; filterN = 0; + _inputPin.mode(PullUp); } void IRRcevPulseWidth::init(uint16_t *dataPtr,uint16_t dataLim,uint32_t timeout_us)