Documentation

This commit is contained in:
Armin 2021-03-22 11:51:18 +01:00
parent 8007e6539f
commit 02ee78376f
4 changed files with 7 additions and 1 deletions

View File

@ -101,7 +101,7 @@ ReceiveDemo + SendDemo in one program. Receiving while sending.
Record and play back last received IR signal at button press.
### MinimalReceiver + SmallReceiver
If code size matters look at these examples.
If code size matters, look at these examples.
### IRDispatcherDemo
Framework for calling different functions for different IR codes.
@ -164,6 +164,12 @@ The receiver sample interval is generated by a timer. On many boards this must b
Every pin can be used for receiving.<br/>
The send PWM signal is by default generated by software. **Therefore every pin can be used for sending**.
| Software generated PWM showing discontinuities in the Arduino core micros() function | Zoom into the discontinuity. The space is once too short but compensated at the next one |
|-|-|
| ![Software PWM](https://github.com/Arduino-IRremote/Arduino-IRremote/blob/master/pictures/IR_PWM_by_software.png) | ![Software PWM detail](https://github.com/Arduino-IRremote/Arduino-IRremote/blob/master/pictures/IR_PWM_by_software_zoom.png) |
| Software generated PWM (ATmega328) with 33% Duty cycle | |
| ![Software PWM detail](https://github.com/Arduino-IRremote/Arduino-IRremote/blob/master/pictures/IR_PWM_by_software_detail.png) | |
## Hardware-PWM signal generation for sending
If you define `SEND_PWM_BY_TIMER`, the send PWM signal is generated by a hardware timer. The same timer as for the receiver is used.
Since each hardware timer has its dedicated output pins, you must change timer to change PWN output.<br/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB