move comment about 'or else' chips that use TIMER2.

This commit is contained in:
Marc MERLIN
2017-03-31 22:01:31 -07:00
parent eae9de4307
commit 6b8f2bdbfc
3 changed files with 4 additions and 4 deletions

View File

@@ -136,11 +136,11 @@
#elif defined(__AVR_ATtiny85__)
#define IR_USE_TIMER_TINY0 // tx = pin 1
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
// ATmega48, ATmega88, ATmega168, ATmega328
#elif defined(ESP32)
#define IR_TIMER_USE_ESP32
#else
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
// ATmega48, ATmega88, ATmega168, ATmega328
//#define IR_USE_TIMER1 // tx = pin 9
#define IR_USE_TIMER2 // tx = pin 3

View File

@@ -23,7 +23,7 @@ decode_results results;
void setup()
{
Serial.begin(115200);
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}

View File

@@ -1,7 +1,7 @@
#include "IRremote.h"
#include "IRremoteInt.h"
#ifdef ESP32
#ifdef IR_TIMER_USE_ESP32
hw_timer_t *timer;
void IRTimer(); // defined in IRremote.cpp
#endif