Skip to content

Commit 6b8f2bd

Browse files
committed
move comment about 'or else' chips that use TIMER2.
1 parent eae9de4 commit 6b8f2bd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

boarddefs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@
136136
#elif defined(__AVR_ATtiny85__)
137137
#define IR_USE_TIMER_TINY0 // tx = pin 1
138138

139-
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
140-
// ATmega48, ATmega88, ATmega168, ATmega328
141139
#elif defined(ESP32)
142140
#define IR_TIMER_USE_ESP32
143141
#else
142+
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
143+
// ATmega48, ATmega88, ATmega168, ATmega328
144144
//#define IR_USE_TIMER1 // tx = pin 9
145145
#define IR_USE_TIMER2 // tx = pin 3
146146

examples/IRrecvDump/IRrecvDump.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ decode_results results;
2323

2424
void setup()
2525
{
26-
Serial.begin(115200);
26+
Serial.begin(9600);
2727
irrecv.enableIRIn(); // Start the receiver
2828
}
2929

irRecv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "IRremote.h"
22
#include "IRremoteInt.h"
33

4-
#ifdef ESP32
4+
#ifdef IR_TIMER_USE_ESP32
55
hw_timer_t *timer;
66
void IRTimer(); // defined in IRremote.cpp
77
#endif

0 commit comments

Comments
 (0)