mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-05 04:52:52 +00:00
Merge pull request #22 from PaulStoffregen/master
Teensy 3.0 compatibility
This commit is contained in:
@@ -252,7 +252,7 @@ void IRsend::mark(int time) {
|
||||
// Sends an IR mark for the specified number of microseconds.
|
||||
// The mark output is modulated at the PWM frequency.
|
||||
TIMER_ENABLE_PWM; // Enable pin 3 PWM output
|
||||
delayMicroseconds(time);
|
||||
if (time > 0) delayMicroseconds(time);
|
||||
}
|
||||
|
||||
/* Leave pin off for time (given in microseconds) */
|
||||
@@ -260,7 +260,7 @@ void IRsend::space(int time) {
|
||||
// Sends an IR space for the specified number of microseconds.
|
||||
// A space is no output, so the PWM output is disabled.
|
||||
TIMER_DISABLE_PWM; // Disable pin 3 PWM output
|
||||
delayMicroseconds(time);
|
||||
if (time > 0) delayMicroseconds(time);
|
||||
}
|
||||
|
||||
void IRsend::enableIROut(int khz) {
|
||||
|
||||
Reference in New Issue
Block a user