Skip to content

Commit 403d3ee

Browse files
committed
fixes Arduino-IRremote#1272 Sharp frame marker
1 parent e623510 commit 403d3ee

File tree

12 files changed

+61
-36
lines changed

12 files changed

+61
-36
lines changed

.github/workflows/PlatformIoPublish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ jobs:
4040
# run: |
4141
# pio package pack
4242
# pio package publish --owner arminjo --non-interactive
43-

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ See also the commit log at github: https://github.com/Arduino-IRremote/Arduino-I
9595
- Introduced common structure PulseDistanceWidthProtocolConstants.
9696
- Where possible, changed all send and decode functions to use PulseDistanceWidthProtocolConstants.
9797
- Improved MSB/LSB handling
98-
- New convenience fuctions bitreverse32Bit() and bitreverseOneByte().
98+
- New convenience functions bitreverse32Bit() and bitreverseOneByte().
9999
- Improved Magiquest protocol.
100100
- Fix for #1028 - Prevent long delay caused by overflow when frame duration < repeat period - Thanks to Stephen Humphries!
101101
- Support for ATtiny816 - Thanks to elockman.

examples/ControlRelay/ControlRelay.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ void setup() {
5353
pinMode(RELAY_PIN, OUTPUT);
5454

5555
Serial.begin(115200);
56-
while (!Serial)
57-
; // Wait for Serial to become available. Is optimized away for some cores.
5856

5957
#if defined(__AVR_ATmega32U4__) || defined(SERIAL_PORT_USBVIRTUAL) || defined(SERIAL_USB) /*stm32duino*/|| defined(USBCON) /*STM32_stm32*/ \
6058
|| defined(SERIALUSB_PID) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_attiny3217)

examples/ReceiveDemo/ReceiveDemo.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,12 @@ void setup() {
126126
#endif
127127

128128
Serial.begin(115200);
129-
while (!Serial)
130-
; // Wait for Serial to become available. Is optimized away for some cores.
131129

132-
#if defined(__AVR_ATmega32U4__) || defined(SERIAL_PORT_USBVIRTUAL) || defined(SERIAL_USB) /*stm32duino*/|| defined(USBCON) /*STM32_stm32*/ \
130+
#if defined(__AVR_ATmega32U4__) || defined(SERIAL_PORT_USBVIRTUAL) || defined(SERIAL_USB) /*stm32duino*/|| defined(USBCON) /*STM32_stm32*/ \
133131
|| defined(SERIALUSB_PID) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_attiny3217)
134132
delay(4000); // To be able to connect Serial monitor after reset or power up and before first print out. Do not wait for an attached Serial Monitor!
135133
#endif
134+
136135
// Just to know which program is running on my Arduino
137136
Serial.println(F("START " __FILE__ " from " __DATE__ "\r\nUsing library version " VERSION_IRREMOTE));
138137

examples/ReceiverTimingAnalysis/ReceiverTimingAnalysis.ino

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,16 @@ void measureTimingISR(void);
4848

4949
void setup() {
5050
pinMode(LED_BUILTIN, OUTPUT);
51-
Serial.begin(115200);
52-
while (!Serial)
53-
; // Wait for Serial to become available. Is optimized away for some cores.
5451

52+
Serial.begin(115200);
5553
#if defined(__AVR_ATmega32U4__) || defined(SERIAL_PORT_USBVIRTUAL) || defined(SERIAL_USB) /*stm32duino*/|| defined(USBCON) /*STM32_stm32*/ \
5654
|| defined(SERIALUSB_PID) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_attiny3217)
57-
delay(4000); // To be able to connect Serial monitor after reset or power up and before first print out. Do not wait for an attached Serial Monitor!
55+
// Wait until Serial Monitor is attached.
56+
// Required for boards using USB code for Serial like Leonardo.
57+
// Is void for USB Serial implementations using external chips e.g. a CH340.
58+
while (!Serial)
59+
;
60+
// !!! Program will not proceed if no Serial Monitor is attached !!!
5861
#endif
5962
// Just to know which program is running on my Arduino
6063
Serial.println(F("START " __FILE__ " from " __DATE__));

examples/SendDemo/SendDemo.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@
5252

5353
void setup() {
5454
Serial.begin(115200);
55-
while (!Serial)
56-
; // Wait for Serial to become available. Is optimized away for some cores.
5755

5856
#if defined(__AVR_ATmega32U4__) || defined(SERIAL_PORT_USBVIRTUAL) || defined(SERIAL_USB) /*stm32duino*/|| defined(USBCON) /*STM32_stm32*/ \
5957
|| defined(SERIALUSB_PID) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_attiny3217)
6058
delay(4000); // To be able to connect Serial monitor after reset or power up and before first print out. Do not wait for an attached Serial Monitor!
6159
#endif
60+
6261
// Just to know which program is running on my Arduino
6362
Serial.println(F("START " __FILE__ " from " __DATE__ "\r\nUsing library version " VERSION_IRREMOTE));
6463

examples/SendProntoDemo/SendProntoDemo.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ IRsend irsend;
5959

6060
void setup() {
6161
Serial.begin(115200);
62-
while (!Serial)
63-
; // Wait for Serial to become available. Is optimized away for some cores.
62+
63+
#if defined(__AVR_ATmega32U4__) || defined(SERIAL_PORT_USBVIRTUAL) || defined(SERIAL_USB) /*stm32duino*/|| defined(USBCON) /*STM32_stm32*/ \
64+
|| defined(SERIALUSB_PID) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_attiny3217)
65+
delay(4000); // To be able to connect Serial monitor after reset or power up and before first print out. Do not wait for an attached Serial Monitor!
66+
#endif
6467

6568
// Just to know which program is running on my Arduino
6669
Serial.println(F("START " __FILE__ " from " __DATE__ "\r\nUsing library version " VERSION_IRREMOTE));

examples/TinyReceiver/TinyReceiver.ino

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,17 @@
8181

8282
void setup() {
8383
Serial.begin(115200);
84-
while (!Serial)
85-
; // Wait for Serial to become available. Is optimized away for some cores.
8684

8785
#if defined(__AVR_ATmega32U4__) || defined(SERIAL_PORT_USBVIRTUAL) || defined(SERIAL_USB) /*stm32duino*/|| defined(USBCON) /*STM32_stm32*/ \
8886
|| defined(SERIALUSB_PID) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_attiny3217)
89-
delay(4000); // To be able to connect Serial monitor after reset or power up and before first print out. Do not wait for an attached Serial Monitor!
87+
// Wait until Serial Monitor is attached.
88+
// Required for boards using USB code for Serial like Leonardo.
89+
// Is void for USB Serial implementations using external chips e.g. a CH340.
90+
while (!Serial)
91+
;
92+
// !!! Program will not proceed if no Serial Monitor is attached !!!
9093
#endif
94+
9195
// Just to know which program is running on my Arduino
9296
#if defined(ESP8266) || defined(ESP32)
9397
Serial.println();

examples/UnitTest/UnitTest.ino

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,15 @@ void setup() {
123123
pinMode(DEBUG_BUTTON_PIN, INPUT_PULLUP);
124124

125125
Serial.begin(115200);
126-
while (!Serial)
127-
; // Wait for Serial to become available. Is optimized away for some cores.
128126

129127
#if defined(__AVR_ATmega32U4__) || defined(SERIAL_PORT_USBVIRTUAL) || defined(SERIAL_USB) /*stm32duino*/|| defined(USBCON) /*STM32_stm32*/ \
130128
|| defined(SERIALUSB_PID) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_attiny3217)
131-
delay(4000); // To be able to connect Serial monitor after reset or power up and before first print out. Do not wait for an attached Serial Monitor!
129+
// Wait until Serial Monitor is attached.
130+
// Required for boards using USB code for Serial like Leonardo.
131+
// Is void for USB Serial implementations using external chips e.g. a CH340.
132+
while (!Serial)
133+
;
134+
// !!! Program will not proceed if no Serial Monitor is attached !!!
132135
#endif
133136
// Just to know which program is running on my Arduino
134137
Serial.println(F("START " __FILE__ " from " __DATE__ "\r\nUsing library version " VERSION_IRREMOTE));

library.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "IRremote",
3-
"keywords": "communication, infrared, ir, remote",
3+
"version": "4.4.1",
44
"description": "Send and receive infrared signals with multiple protocols",
5+
"keywords": "communication, infrared, ir, remote",
6+
"homepage": "https://github.com/Arduino-IRremote/Arduino-IRremote",
57
"repository":
68
{
79
"type": "git",
810
"url": "https://github.com/Arduino-IRremote/Arduino-IRremote.git"
911
},
10-
"version": "4.4.1",
11-
"frameworks": "arduino",
12-
"platforms": ["atmelavr", "atmelmegaavr", "atmelsam", "espressif8266", "espressif32", "ststm32"],
1312
"authors" :
1413
[
1514
{
@@ -26,5 +25,10 @@
2625
2726
}
2827
],
29-
"headers": "IRRemote.hpp"
28+
"license": "MIT",
29+
"frameworks": "arduino",
30+
"platforms": ["atmelavr", "atmelmegaavr", "atmelsam", "espressif8266", "espressif32", "ststm32"],
31+
"headers": "IRRemote.hpp",
32+
"examples": "examples/*/*.ino",
33+
"export": {"exclude": [".github", "pictures"]}
3034
}

0 commit comments

Comments
 (0)