Closed cadesalaberry closed 3 months ago
I went ahead an tried another branch of the library from this PR: https://github.com/crankyoldgit/IRremoteESP8266/pull/2040 Doing the following (On a Mac M2) seems to have solved my problem:
cd ~/Documents/Arduino/libraries/
rm -rf IRremoteESP8266/
git clone git@github.com:tonhuisman/IRremoteESP8266.git
cd IRremoteESP8266/
git switch feature/C++20-compatibility
Then I restarted my IDE, pressed "Verify" which led to a successful build 🎉
@tonhuisman do you know what is missing to merge your PR?
Duplicate of #2039 #2122 Search: https://github.com/search?q=repo%3Acrankyoldgit%2FIRremoteESP8266+timerAlarmEnable&type=issues Please always search first, and don't create duplicate issues.
For others coming this way, here is my PlatformIO
config to build this library for XIAO_ESP32C6:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32-c6-devkitm-1]
board = esp32-c6-devkitm-1
platform = espressif32
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.3
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1
framework = arduino
monitor_speed = 115200
lib_deps =
https://github.com/tonhuisman/IRremoteESP8266/archive/feature/C++20-compatibility.zip
I also had to edit the esp32-c6-devkitm-1.json
file to add arduino
in the supported frameworks:
// ~/.platformio/platforms/espressif32/boards/esp32-c6-devkitc-1.json
{
"build": {
"core": "esp32",
"f_cpu": "160000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"mcu": "esp32c6",
"variant": "esp32c6"
},
"connectivity": ["wifi"],
"debug": {
"openocd_target": "esp32c6.cfg"
},
"frameworks": ["espidf", "arduino"],
"name": "Espressif ESP32-C6-DevKitM-1",
"upload": {
"flash_size": "4MB",
"maximum_ram_size": 327680,
"maximum_size": 4194304,
"require_upload_port": true,
"speed": 460800
},
"url": "https://docs.espressif.com/projects/espressif-esp-dev-kits/en/latest/esp32c6/esp32-c6-devkitm-1/index.html",
"vendor": "Espressif"
}
Version/revision of the library used
2.8.6
Describe the bug
When running the verify command on Arduino IDE, it refuses to compile. It seems to be related to recent modifications in the arduino framework as mentioned here: https://github.com/crankyoldgit/IRremoteESP8266/issues/2053
EDIT: The most promising solution seems to be in the PR: https://github.com/crankyoldgit/IRremoteESP8266/issues/2039
To Reproduce
XIAO_ESP32C6
as the target boardExample code used
Expected behaviour
I would expect the verify step to successfully compile.
Output of raw data from IRrecvDumpV2.ino or V3 (if applicable)
Circuit diagram and hardware used (if applicable)
XIAO_ESP32C6
I have followed the steps in the Troubleshooting Guide & read the FAQ
Yes
Has this library/code previously worked as expected for you?
No
Other useful information
I am a bit rusty in C, it dates back to my Electrical Engineering Classes in 2015. I am trying to build a volume controller for my Devialet speaker to control it with an AppleTV remote, copying the behaviour of a working PoC in NodeJS.