Skip to content

Commit 29564e8

Browse files
committed
Removed default value USE_DEFAULT_FEEDBACK_LED_PIN for last parameter of IRsend::begin(bool aEnableLEDFeedback, uint_fast8_t aFeedbackLEDPin).
1 parent f283885 commit 29564e8

File tree

17 files changed

+40
-25
lines changed

17 files changed

+40
-25
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ See also the commit log at github: https://github.com/Arduino-IRremote/Arduino-I
99
- Added functions stopTimer(), restartTimer() and restartTimerWithTicksToAdd().
1010
- Added rawlen and initialGap to IRData.
1111
- Added ReceiveAndSendHobToHood example.
12+
- Removed default value USE_DEFAULT_FEEDBACK_LED_PIN for last parameter of IRsend::begin(bool aEnableLEDFeedback, uint_fast8_t aFeedbackLEDPin).
1213

1314
# 4.2.1
1415
- Fix wrong type of tEnableLEDFeedback in IRSend.hpp and IRReceive.hpp.

examples/AllProtocolsOnLCD/AllProtocolsOnLCD.ino

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -354,18 +354,25 @@ void printIRResultOnLCD() {
354354

355355
if (IrReceiver.decodedIRData.protocol == UNKNOWN) {
356356
/*
357-
* Print number of bits received and microseconds of signal
357+
* Print number of bits received and hash code or microseconds of signal
358358
*/
359359
myLCD.setCursor(0, 1);
360360
uint8_t tNumberOfBits = (IrReceiver.decodedIRData.rawDataPtr->rawlen + 1) / 2;
361-
if (tNumberOfBits < 10) {
362-
myLCD.print(' '); // padding space
363-
}
364-
myLCD.print(tNumberOfBits);
361+
uint_fast8_t tPrintedStringLength = myLCD.print(tNumberOfBits);
365362
myLCD.print(F(" bit "));
366-
uint_fast8_t tDurationStringLength = myLCD.print(IrReceiver.getTotalDurationOfRawData());
367-
myLCD.print(F(" \xE4s")); // \xE4 is micro symbol
368-
printSpacesOnLCD(7 - tDurationStringLength);
363+
364+
if (IrReceiver.decodedIRData.decodedRawData != 0) {
365+
if (tNumberOfBits < 10) {
366+
myLCD.print('0');
367+
tPrintedStringLength++;
368+
}
369+
myLCD.print('x');
370+
tPrintedStringLength += myLCD.print(IrReceiver.decodedIRData.decodedRawData, HEX) + 1;
371+
} else {
372+
tPrintedStringLength += myLCD.print(IrReceiver.getTotalDurationOfRawData());
373+
myLCD.print(F(" \xE4s")); // \xE4 is micro symbol
374+
}
375+
printSpacesOnLCD(11 - tPrintedStringLength);
369376
sLastProtocolAddress = 4711;
370377
sLastCommand = 44711;
371378

examples/MicroGirs/MicroGirs.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void setup() {
317317
#endif
318318

319319
#if defined(IR_SEND_PIN)
320-
IrSender.begin(); // Start with IR_SEND_PIN as send pin and enable feedback LED at default feedback LED pin
320+
IrSender.begin(); // Start with IR_SEND_PIN -which is defined in PinDefinitionsAndMore.h- as send pin and enable feedback LED at default feedback LED pin
321321
#else
322322
IrSender.begin(3, ENABLE_LED_FEEDBACK, USE_DEFAULT_FEEDBACK_LED_PIN); // Specify send pin and enable feedback LED at default feedback LED pin
323323
#endif

examples/ReceiveAndSend/ReceiveAndSend.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void setup() {
127127
printActiveIRProtocols(&Serial);
128128
Serial.println(F("at pin " STR(IR_RECEIVE_PIN)));
129129

130-
IrSender.begin(); // Start with IR_SEND_PIN as send pin and enable feedback LED at default feedback LED pin
130+
IrSender.begin(); // Start with IR_SEND_PIN -which is defined in PinDefinitionsAndMore.h- as send pin and enable feedback LED at default feedback LED pin
131131
Serial.print(F("Ready to send IR signals at pin " STR(IR_SEND_PIN) " on press of button at pin "));
132132
Serial.println(SEND_BUTTON_PIN);
133133
}

examples/ReceiveAndSendDistanceWidth/ReceiveAndSendDistanceWidth.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void setup() {
9999
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
100100
Serial.println(F("Ready to receive pulse distance/width coded IR signals at pin " STR(IR_RECEIVE_PIN)));
101101

102-
IrSender.begin(); // Start with IR_SEND_PIN as send pin and enable feedback LED at default feedback LED pin
102+
IrSender.begin(); // Start with IR_SEND_PIN -which is defined in PinDefinitionsAndMore.h- as send pin and enable feedback LED at default feedback LED pin
103103
Serial.print(F("Ready to send IR signals at pin " STR(IR_SEND_PIN) " on press of button at pin "));
104104
Serial.println(SEND_BUTTON_PIN);
105105
}

examples/ReceiveAndSendHob2Hood/ReceiveAndSendHob2Hood.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void setup() {
8484
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
8585

8686
Serial.print(F("Ready to receive Hob2Hood IR signals at pin " STR(IR_RECEIVE_PIN)));
87-
IrSender.begin(); // Start with IR_SEND_PIN as send pin and enable feedback LED at default feedback LED pin
87+
IrSender.begin(); // Start with IR_SEND_PIN -which is defined in PinDefinitionsAndMore.h- as send pin and enable feedback LED at default feedback LED pin
8888
Serial.println(F("Send Hob2Hood IR signals at pin " STR(IR_SEND_PIN)));
8989
}
9090

examples/ReceiveDump/ReceiveDump.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void setup() {
8888
Serial.println();
8989
Serial.println(F("Because of the verbose output (>200 ms at 115200 baud), repeats are not dumped correctly!"));
9090
Serial.println();
91-
Serial.println(F("If you receive protocol NEC, Samsung or LG, run also ReceiveDemo to check if your actual protocol is eventually NEC2, SamsungLG or LG2, which is determined by the repeats"));
91+
Serial.println(F("If you receive protocol NEC, Samsung or LG, run also ReceiveDemo to check if your actual protocol is eventually NEC2 or SamsungLG, which is determined by the repeats"));
9292
Serial.println();
9393

9494
}

examples/ReceiveOneAndSendMultiple/ReceiveOneAndSendMultiple.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void setup() {
123123
printActiveIRProtocols(&Serial);
124124
Serial.println(F("at pin " STR(IR_RECEIVE_PIN)));
125125

126-
IrSender.begin(); // Start with IR_SEND_PIN as send pin and enable feedback LED at default feedback LED pin
126+
IrSender.begin(); // Start with IR_SEND_PIN -which is defined in PinDefinitionsAndMore.h- as send pin and enable feedback LED at default feedback LED pin
127127
Serial.println(F("Ready to send IR signals at pin " STR(IR_SEND_PIN)));
128128
}
129129

examples/SendAndReceive/SendAndReceive.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void setup() {
6565
Serial.print(F("Ready to receive IR signals of protocols: "));
6666
printActiveIRProtocols(&Serial);
6767
Serial.println(F("at pin " STR(IR_RECEIVE_PIN)));
68-
IrSender.begin(); // Start with IR_SEND_PIN as send pin and enable feedback LED at default feedback LED pin
68+
IrSender.begin(); // Start with IR_SEND_PIN -which is defined in PinDefinitionsAndMore.h- as send pin and enable feedback LED at default feedback LED pin
6969
Serial.println(F("Send IR signals at pin " STR(IR_SEND_PIN)));
7070

7171
#if FLASHEND >= 0x3FFF // For 16k flash or more, like ATtiny1604

examples/SendBoseWaveDemo/SendBoseWaveDemo.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void setup() {
111111
Serial.println(F("START " __FILE__ " from " __DATE__ "\r\nUsing library version " VERSION_IRREMOTE));
112112

113113
#if defined(IR_SEND_PIN)
114-
IrSender.begin(); // Start with IR_SEND_PIN as send pin and enable feedback LED at default feedback LED pin
114+
IrSender.begin(); // Start with IR_SEND_PIN -which is defined in PinDefinitionsAndMore.h- as send pin and enable feedback LED at default feedback LED pin
115115
Serial.println(F("Send IR signals at pin " STR(IR_SEND_PIN)));
116116
#else
117117
uint8_t tSendPin = 3;

0 commit comments

Comments
 (0)