-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the accuracy of software PWM in mark(). (#192)
- Apply an external offset for the period calculation so we allow for code/execution time in producing the software based PWM signal in mark(). - Add a simple calibrate() method to IRsend(). - First check in of a routine to calculate the execution delays in mark() and create an offset based on that for future mark() calls. Note: Requires a user to call IRsend.calibrate() before sending a signal. If not, defaults to '-3' as determined experimentally in Issue #62 WARNING: The calibrate() routine will generate a PWM pulse when called, thus it is left as an optional step for users who are interested.
- Loading branch information
1 parent
a137ceb
commit 178b09d
Showing
3 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters