我想问使用IRremote库进行红外发射都默认在端口3是不是不可以修改的啊
我想问使用IRremote库进行红外发射都默认在端口3是不是不可以修改的啊,看帮助文档也没写,请各位高手指教 你可以44,我最近也在看红外不过官网上说,红外接收可以是任意数字电,发射好像只能是Pin 3
原文
For output, connect an IR LED and appropriate resistor to PWM output pin 3. Make sure the polarity of the LED is correct, or it won't illuminate - the long lead is positive. I used a NTE 3027 LED (because that's what was handy) and 100 ohm resistor; the range is about 15 feet. For additional range, you can amplify the output with a transistor.
发错了,是这段
The transmission code is straightforward. To ensure accurate output frequencies and duty cycles, I use the PWM timer, rather than delay loops to modulate the output LED at the appropriate frequency. (See my Arduino PWM Secrets article for more details on the PWM timers.) At the low level, enableIROut sets up the timer for PWM output on pin 3 at the proper frequency. The mark() method sends a mark by enabling PWM output and delaying the specified time. The space() method sends a space by disabling PWM output and delaying the specified time.
页:
[1]