Skip to content

Commit 6d13be7

Browse files
pidgeclaude
andcommitted
Upgrade IRremote library to 4.4.1 for ESP32 compatibility
IRremote 4.1.2 is incompatible with ESP32 Arduino core 3.x due to deprecated timer API functions. Version 4.4.1 includes fixes for ESP32 core 3.x compatibility. Changes: - Update CI workflow to install [email protected] - Update version comments in both sketches - Tested locally on all three platforms (Uno, ESP8266, ESP32) - All builds pass successfully Fixes ESP32 compilation errors: - timerAlarmEnable/timerAlarmDisable not declared - timerBegin/timerAttachInterrupt signature changes - ledcSetup/ledcAttachPin not declared 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent d88855d commit 6d13be7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/arduino-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
4747
- name: Install IRremote library
4848
run: |
49-
arduino-cli lib install "IRremote@4.1.2"
49+
arduino-cli lib install "IRremote@4.4.1"
5050
5151
- name: Compile sketch for ${{ matrix.board.name }}
5252
run: |

ac_control/ir_receiver/ir_receiver.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define sprint Serial.print
22
#define sprintln Serial.println
3-
#include <IRremote.hpp> // IRremote 4.1.2 from Library Manager
3+
#include <IRremote.hpp> // IRremote 4.4.1 from Library Manager
44

55
int RECV_PIN = 11;
66
unsigned long timeBegin;

ac_control/ir_sender/ir_sender.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <IRremote.hpp> // IRremote 4.1.2 from Library Manager
1+
#include <IRremote.hpp> // IRremote 4.4.1 from Library Manager
22

33
// PIR motion sensor configuration
44
#define PIR_PIN 2 // GPIO pin connected to PIR sensor output

0 commit comments

Comments
 (0)