Add support for Teensy 3.0

This commit is contained in:
PaulStoffregen
2013-01-20 06:48:13 -08:00
parent 3f70ad2e4c
commit 9ba6628f04
2 changed files with 54 additions and 2 deletions

View File

@@ -225,7 +225,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) */
@@ -233,7 +233,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) {