赤外線リモコンの送信をパルス幅にて行います。 IRRcevPulseWidthライブラリと合わせて使ってください。 Transmit IR control by pulse width. Please use it together with the IRRcevPulseWidth library.

Dependents:   IRLED_SendReceveDemo

Committer:
nameless129
Date:
Sun Dec 25 09:53:36 2016 +0000
Revision:
0:beaea9bf9c5b
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nameless129 0:beaea9bf9c5b 1 #ifndef __IRSEND_PULSEWIDTH_H__
nameless129 0:beaea9bf9c5b 2 #define __IRSEND_PULSEWIDTH_H__
nameless129 0:beaea9bf9c5b 3
nameless129 0:beaea9bf9c5b 4 #include "mbed.h"
nameless129 0:beaea9bf9c5b 5
nameless129 0:beaea9bf9c5b 6
nameless129 0:beaea9bf9c5b 7 class IRSendPulseWidth {
nameless129 0:beaea9bf9c5b 8 public:
nameless129 0:beaea9bf9c5b 9 IRSendPulseWidth(PinName output);
nameless129 0:beaea9bf9c5b 10
nameless129 0:beaea9bf9c5b 11 void sendSignal(uint16_t *sendDataArray,uint16_t sendDataN);
nameless129 0:beaea9bf9c5b 12
nameless129 0:beaea9bf9c5b 13 private:
nameless129 0:beaea9bf9c5b 14 PwmOut g_pwmoutLed;
nameless129 0:beaea9bf9c5b 15 };
nameless129 0:beaea9bf9c5b 16
nameless129 0:beaea9bf9c5b 17 #endif