Hello,
I face compiling errors when just including the "RadioHead" library into my sketch (#include <RadioHead.h> no other code for now).
My setup is :
- Arduino Uno R4 Wifi
- Working with Arduino Cloud web interface but I have exactly the same errors with the local IDE
Thanks in advance if someone has an idea...
Compiling errors are :
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp: In member function 'void RH_ASK::timerSetup()':
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp:463:5: error: 'TCCR1A' was not declared in this scope
TCCR1A = 0; // Output Compare pins disconnected
^~~~~~
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp:464:5: error: 'TCCR1B' was not declared in this scope
TCCR1B = _BV(WGM12); // Turn on CTC mode
^~~~~~
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp:464:18: error: 'WGM12' was not declared in this scope
TCCR1B = _BV(WGM12); // Turn on CTC mode
^~~~~
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp:464:14: error: '_BV' was not declared in this scope
TCCR1B = _BV(WGM12); // Turn on CTC mode
^~~
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp:464:14: note: suggested alternative: '_B'
TCCR1B = _BV(WGM12); // Turn on CTC mode
^~~
_B
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp:471:5: error: 'OCR1A' was not declared in this scope
OCR1A = nticks;
^~~~~
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp:478:5: error: 'TIMSK' was not declared in this scope
TIMSK |= _BV(OCIE1A);
^~~~~
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp:478:18: error: 'OCIE1A' was not declared in this scope
TIMSK |= _BV(OCIE1A);
^~~~~~
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp: At global scope:
/home/builder/Arduino/libraries/radiohead_1_122_1/RH_ASK.cpp:798:4: error: expected constructor, destructor, or type conversion before '(' token
ISR(RH_ASK_TIMER_VECTOR)
^
/home/builder/Arduino/libraries/radiohead_1_122_1/RHHardwareSPI.cpp: In member function 'virtual void RHHardwareSPI::begin()':
/home/builder/Arduino/libraries/radiohead_1_122_1/RHHardwareSPI.cpp:137:57: error: invalid conversion from 'uint8_t {aka unsigned char}' to 'BitOrder' [-fpermissive]
_settings = SPISettings(frequency, bitOrder, dataMode);
^
In file included from /home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.0/libraries/SPI/SPI.h:22:0,
from /home/builder/Arduino/libraries/radiohead_1_122_1/RadioHead.h:1517,
from /home/builder/Arduino/libraries/radiohead_1_122_1/RHGenericSPI.h:10,
from /home/builder/Arduino/libraries/radiohead_1_122_1/RHHardwareSPI.h:10,
from /home/builder/Arduino/libraries/radiohead_1_122_1/RHHardwareSPI.cpp:7:
/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.0/cores/arduino/api/HardwareSPI.h:47:3: note: initializing argument 2 of 'arduino::SPISettings::SPISettings(uint32_t, BitOrder, int)'
SPISettings(uint32_t clock, BitOrder bitOrder, int dataMode) {
^~~~~~~~~~~