mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2025-12-11 08:56:14 +00:00
move comment about 'or else' chips that use TIMER2.
This commit is contained in:
@@ -136,11 +136,11 @@
|
|||||||
#elif defined(__AVR_ATtiny85__)
|
#elif defined(__AVR_ATtiny85__)
|
||||||
#define IR_USE_TIMER_TINY0 // tx = pin 1
|
#define IR_USE_TIMER_TINY0 // tx = pin 1
|
||||||
|
|
||||||
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
|
|
||||||
// ATmega48, ATmega88, ATmega168, ATmega328
|
|
||||||
#elif defined(ESP32)
|
#elif defined(ESP32)
|
||||||
#define IR_TIMER_USE_ESP32
|
#define IR_TIMER_USE_ESP32
|
||||||
#else
|
#else
|
||||||
|
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
|
||||||
|
// ATmega48, ATmega88, ATmega168, ATmega328
|
||||||
//#define IR_USE_TIMER1 // tx = pin 9
|
//#define IR_USE_TIMER1 // tx = pin 9
|
||||||
#define IR_USE_TIMER2 // tx = pin 3
|
#define IR_USE_TIMER2 // tx = pin 3
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ decode_results results;
|
|||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
Serial.begin(115200);
|
Serial.begin(9600);
|
||||||
irrecv.enableIRIn(); // Start the receiver
|
irrecv.enableIRIn(); // Start the receiver
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include "IRremote.h"
|
#include "IRremote.h"
|
||||||
#include "IRremoteInt.h"
|
#include "IRremoteInt.h"
|
||||||
|
|
||||||
#ifdef ESP32
|
#ifdef IR_TIMER_USE_ESP32
|
||||||
hw_timer_t *timer;
|
hw_timer_t *timer;
|
||||||
void IRTimer(); // defined in IRremote.cpp
|
void IRTimer(); // defined in IRremote.cpp
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user