赤外線リモコンの受信をパルス幅にて行います。 Displays the pulse width of the IR control.
Dependents: IRLED_SendReceveDemo IRreceiver_PulseWidth
Diff: IRRcevPulseWidth.cpp
- Revision:
- 3:b2a1f396ee27
- Parent:
- 2:674f9ea95a5a
--- 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)