So I am guessing that 2nd bullet is optional.
Here you go Karen
This is the sample from the Arduio ide for the IRemote library. I changed nothing and tried to upload it. Note: I uploaded it to the same Esp32-wroom chip 8 days ago and it worked.
/*
* SimpleReceiver.cpp
*
* Demonstrates receiving NEC IR codes with IRremote
*
* This file is part of Arduino-IRremote https://github.com/Arduino-IRremote/Arduino-IRremote.
*
************************************************************************************
* MIT License
*
* Copyright (c) 2020-2023 Armin Joachimsmeyer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is furnished
* to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
************************************************************************************
*/
/*
* Specify which protocol(s) should be used for decoding.
* If no protocol is defined, all protocols (except Bang&Olufsen) are active.
* This must be done before the #include <IRremote.hpp>
*/
//#define DECODE_DENON // Includes Sharp
//#define DECODE_JVC
//#define DECODE_KASEIKYO
//#define DECODE_PANASONIC // alias for DECODE_KASEIKYO
//#define DECODE_LG
#define DECODE_NEC // Includes Apple and Onkyo
//#define DECODE_SAMSUNG
//#define DECODE_SONY
//#define DECODE_RC5
//#define DECODE_RC6
//#define DECODE_BOSEWAVE
//#define DECODE_LEGO_PF
//#define DECODE_MAGIQUEST
//#define DECODE_WHYNTER
//#define DECODE_FAST
//#define DECODE_DISTANCE_WIDTH // Universal decoder for pulse distance width protocols
//#define DECODE_HASH // special decoder for all protocols
//#define DECODE_BEO // This protocol must always be enabled manually, i.e. it is NOT enabled if no protocol is defined. It prevents decoding of SONY!
//#define DEBUG // Activate this for lots of lovely debug output from the decoders.
//#define RAW_BUFFER_LENGTH 180 // Default is 112 if DECODE_MAGIQUEST is enabled, otherwise 100.
#include <Arduino.h>
/*
* This include defines the actual pin number for pins like IR_RECEIVE_PIN, IR_SEND_PIN for many different boards and architectures
*/
#include "PinDefinitionsAndMore.h"
#include <IRremote.hpp> // include the library
void setup() {
Serial.begin(115200);
// Just to know which program is running on my Arduino
Serial.println(F("START " __FILE__ " from " __DATE__ "\r\nUsing library version " VERSION_IRREMOTE));
// Start the receiver and if not 3. parameter specified, take LED_BUILTIN pin from the internal boards definition as default feedback LED
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
Serial.print(F("Ready to receive IR signals of protocols: "));
printActiveIRProtocols(&Serial);
Serial.println(F("at pin " STR(IR_RECEIVE_PIN)));
}
void loop() {
/*
* Check if received data is available and if yes, try to decode it.
* Decoded result is in the IrReceiver.decodedIRData structure.
*
* E.g. command is in IrReceiver.decodedIRData.command
* address is in command is in IrReceiver.decodedIRData.address
* and up to 32 bit raw data in IrReceiver.decodedIRData.decodedRawData
*/
if (IrReceiver.decode()) {
/*
* Print a short summary of received data
*/
IrReceiver.printIRResultShort(&Serial);
IrReceiver.printIRSendUsage(&Serial);
if (IrReceiver.decodedIRData.protocol == UNKNOWN) {
Serial.println(F("Received noise or an unknown (or not yet enabled) protocol"));
// We have an unknown protocol here, print more info
IrReceiver.printIRResultRawFormatted(&Serial, true);
}
Serial.println();
/*
* !!!Important!!! Enable receiving of the next value,
* since receiving has stopped after the end of the current received data packet.
*/
IrReceiver.resume(); // Enable receiving of the next value
/*
* Finally, check the received data and perform actions according to the received command
*/
if (IrReceiver.decodedIRData.command == 0x10) {
// do something
} else if (IrReceiver.decodedIRData.command == 0x11) {
// do something else
}
}
}
There is no schematic, I cannot even get it to build.
This is the resulting error message
FQBN: esp32:esp32:esp32da
Using board 'esp32da' from platform in folder: C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2
Using core 'esp32' from platform in folder: C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2
cmd /c if exist "C:\Users\pcopp\AppData\Local\Temp\.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver\partitions.csv" COPY /y "C:\Users\pcopp\AppData\Local\Temp\.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver\partitions.csv" "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\partitions.csv"
cmd /c if not exist "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\partitions.csv" if exist "C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\variants\esp32da\partitions.csv" COPY "C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\variants\esp32da\partitions.csv" "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\partitions.csv"
cmd /c if not exist "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\partitions.csv" COPY "C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\tools\partitions\default.csv" "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\partitions.csv"
cmd /c IF EXIST "C:\Users\pcopp\AppData\Local\Temp\.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver\bootloader.bin" ( COPY /y "C:\Users\pcopp\AppData\Local\Temp\.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver\bootloader.bin" "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\SimpleReceiver.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\variants\esp32da\bootloader.bin" ( COPY "C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\variants\esp32da\bootloader.bin" "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\SimpleReceiver.ino.bootloader.bin" ) ELSE ( "C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6/esptool.exe" --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\SimpleReceiver.ino.bootloader.bin" "C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32\bin\bootloader_qio_80m.elf" ) )
esptool.py v4.6
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
cmd /c if exist "C:\Users\pcopp\AppData\Local\Temp\.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver\build_opt.h" COPY /y "C:\Users\pcopp\AppData\Local\Temp\.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver\build_opt.h" "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\build_opt.h"
cmd /c if not exist "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\build_opt.h" type nul > "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\build_opt.h"
Detecting libraries used...
C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-12.2.0_20230208/bin/xtensa-esp32-elf-g++ -c @C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_WROOM_DA -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_WROOM_DA" -DARDUINO_VARIANT="esp32da" -DARDUINO_PARTITION_default -DARDUINO_HOST_OS="windows" -DARDUINO_FQBN="esp32:esp32:esp32da:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,LoopCore=1,EventsCore=1,EraseFlash=none" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 @C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/defines -IC:\Users\pcopp\AppData\Local\Temp.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver -iprefix C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/include/ @C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/includes -IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/qio_qspi/include -IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\cores\esp32 -IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\variants\esp32da @C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52/build_opt.h C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\sketch\SimpleReceiver.ino.cpp -o nul
Alternatives for IRremote.hpp: [IRremote@4.2.0]
ResolveLibrary(IRremote.hpp)
-> candidates: [IRremote@4.2.0]
C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-12.2.0_20230208/bin/xtensa-esp32-elf-g++ -c @C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_WROOM_DA -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_WROOM_DA" -DARDUINO_VARIANT="esp32da" -DARDUINO_PARTITION_default -DARDUINO_HOST_OS="windows" -DARDUINO_FQBN="esp32:esp32:esp32da:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,LoopCore=1,EventsCore=1,EraseFlash=none" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 @C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/defines -IC:\Users\pcopp\AppData\Local\Temp.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver -iprefix C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/include/ @C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/includes -IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/qio_qspi/include -IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\cores\esp32 -IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\variants\esp32da -Ic:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src @C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52/build_opt.h C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\sketch\SimpleReceiver.ino.cpp -o nul
Generating function prototypes...
C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-12.2.0_20230208/bin/xtensa-esp32-elf-g++ -c @C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_WROOM_DA -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_WROOM_DA" -DARDUINO_VARIANT="esp32da" -DARDUINO_PARTITION_default -DARDUINO_HOST_OS="windows" -DARDUINO_FQBN="esp32:esp32:esp32da:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,LoopCore=1,EventsCore=1,EraseFlash=none" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 @C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/defines -IC:\Users\pcopp\AppData\Local\Temp.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver -iprefix C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/include/ @C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/includes -IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/qio_qspi/include -IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\cores\esp32 -IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\variants\esp32da -Ic:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src @C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52/build_opt.h C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\sketch\SimpleReceiver.ino.cpp -o C:\Users\pcopp\AppData\Local\Temp\2242928234\sketch_merged.cpp
C:\Users\pcopp\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\pcopp\AppData\Local\Temp\2242928234\sketch_merged.cpp
Compiling sketch...
"C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-12.2.0_20230208/bin/xtensa-esp32-elf-g++" -MMD -c "@C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/cpp_flags" -w -Os -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_WROOM_DA -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ESP32_WROOM_DA"" "-DARDUINO_VARIANT="esp32da"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS="windows"" "-DARDUINO_FQBN="esp32:esp32:esp32da:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,LoopCore=1,EventsCore=1,EraseFlash=none"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/defines" "-IC:\Users\pcopp\AppData\Local\Temp\.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver" -iprefix "C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/include/" "@C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/flags/includes" "-IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-6b1f40b9bf/esp32/qio_qspi/include" "-IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\cores\esp32" "-IC:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\variants\esp32da" "-Ic:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src" "@C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52/build_opt.h" "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\sketch\SimpleReceiver.ino.cpp" -o "C:\Users\pcopp\AppData\Local\Temp\arduino\sketches\F604BE6135503FA60E664BADCC1DDC52\sketch\SimpleReceiver.ino.cpp.o"
In file included from c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/IRremote.hpp:264,
from C:\Users\pcopp\AppData\Local\Temp.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver\SimpleReceiver.ino:70:
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp: In function 'void timerEnableReceiveInterrupt()':
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp:1444:5: error: 'timerAlarmEnable' was not declared in this scope; did you mean 'timerAlarm'?
1444 | timerAlarmEnable(s50usTimer);
| ^~~~~~~~~~~~~~~~
| timerAlarm
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp: In function 'void timerDisableReceiveInterrupt()':
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp:1463:9: error: 'timerAlarmDisable' was not declared in this scope
1463 | timerAlarmDisable(s50usTimer);
| ^~~~~~~~~~~~~~~~~
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp: In function 'void timerConfigForReceive()':
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp:1478:32: error: too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'
1478 | s50usTimer = timerBegin(1, 80, true);
| ^~~
In file included from C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\cores\esp32/esp32-hal.h:84,
from C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\cores\esp32/Arduino.h:36,
from C:\Users\pcopp\AppData\Local\Temp.arduinoIDE-unsaved2023916-18088-s0j0da.6uk3m\SimpleReceiver\SimpleReceiver.ino:64:
C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\cores\esp32/esp32-hal-timer.h:35:14: note: declared here
35 | hw_timer_t * timerBegin(uint32_t frequency);
| ^~~~~~~~~~
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp:1479:29: error: too many arguments to function 'void timerAttachInterrupt(hw_timer_t*, void (*)())'
1479 | timerAttachInterrupt(s50usTimer, &IRReceiveTimerInterruptHandler, false); // false -> level interrupt, true -> edge interrupt, but this is not supported
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\pcopp\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha2\cores\esp32/esp32-hal-timer.h:50:6: note: declared here
50 | void timerAttachInterrupt(hw_timer_t * timer, void (*userFunc)(void));
| ^~~~~~~~~~~~~~~~~~~~
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp:1480:9: error: 'timerAlarmWrite' was not declared in this scope; did you mean 'timerWrite'?
1480 | timerAlarmWrite(s50usTimer, MICROS_PER_TICK, true);
| ^~~~~~~~~~~~~~~
| timerWrite
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp: In function 'void timerConfigForSend(uint16_t)':
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp:1498:5: error: 'ledcSetup' was not declared in this scope
1498 | ledcSetup(SEND_AND_RECEIVE_TIMER_LEDC_CHANNEL, aFrequencyKHz * 1000, 8); // 8 bit PWM resolution
| ^~~~~~~~~
c:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote\src/private/IRTimer.hpp:1500:5: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
1500 | ledcAttachPin(IR_SEND_PIN, SEND_AND_RECEIVE_TIMER_LEDC_CHANNEL); // bind pin to channel
| ^~~~~~~~~~~~~
| ledcAttach
Using library IRremote at version 4.2.0 in folder: C:\Users\pcopp\OneDrive\Documents\Arduino\libraries\IRremote
exit status 1
Compilation error: exit status 1