赤外線リモコンの受信をパルス幅にて行います。 Displays the pulse width of the IR control.

Dependents:   IRLED_SendReceveDemo IRreceiver_PulseWidth

Files at this revision

API Documentation at this revision

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)