Skip to content

Commit

Permalink
move comment about 'or else' chips that use TIMER2.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmerlin committed Apr 1, 2017
1 parent eae9de4 commit 6b8f2bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions boarddefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/IRrecvDump/IRrecvDump.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ decode_results results;

void setup()
{
Serial.begin(115200);
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}

Expand Down
2 changes: 1 addition & 1 deletion irRecv.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6b8f2bd

Please sign in to comment.