Go Down

Topic: Arduino Nano Every and Radiohead library (Read 76 times) previous topic - next topic

tue_jeroen

Dear all, 

Im doing a school project with Arduino. Im was getting somewhere with my coding, but then I had a major fallback. For some reason, the Radiohead library does not support Nano every's. My nano 33 Iot is the job, but as I need to make a connection to another Arduino I also have to get the Every working. Can someone help me? 

PS: I can upload sketches to the Every like the Blink, but the ask_receiver does not work. 

sterretje

Does it compile? If not, post the errors.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

tue_jeroen

Does it compile? If not, post the errors.
Code: [Select]
Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano Every, None (ATMEGA4809)"





















C:\Users\20193536\Documents\Arduino\libraries\RadioHead\RHHardwareSPI.cpp: In member function 'virtual void RHHardwareSPI::attachInterrupt()':

C:\Users\20193536\Documents\Arduino\libraries\RadioHead\RHHardwareSPI.cpp:74:25: error: 'virtual void SPIClassMegaAVR::attachInterrupt()' is private within this context

     SPI.attachInterrupt();

                         ^

In file included from C:\Users\20193536\Documents\Arduino\libraries\RadioHead/RadioHead.h:1405:0,

                 from C:\Users\20193536\Documents\Arduino\libraries\RadioHead/RHGenericSPI.h:10,

                 from C:\Users\20193536\Documents\Arduino\libraries\RadioHead/RHHardwareSPI.h:10,

                 from C:\Users\20193536\Documents\Arduino\libraries\RadioHead\RHHardwareSPI.cpp:7:

C:\Users\20193536\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\libraries\SPI\src/SPI.h:185:15: note: declared private here

   inline void attachInterrupt() { SPI0.INTCTRL |= (SPI_IE_bm); }

               ^~~~~~~~~~~~~~~

C:\Users\20193536\Documents\Arduino\libraries\RadioHead\RHHardwareSPI.cpp: In member function 'virtual void RHHardwareSPI::detachInterrupt()':

C:\Users\20193536\Documents\Arduino\libraries\RadioHead\RHHardwareSPI.cpp:81:25: error: 'virtual void SPIClassMegaAVR::detachInterrupt()' is private within this context

     SPI.detachInterrupt();

                         ^

In file included from C:\Users\20193536\Documents\Arduino\libraries\RadioHead/RadioHead.h:1405:0,

                 from C:\Users\20193536\Documents\Arduino\libraries\RadioHead/RHGenericSPI.h:10,

                 from C:\Users\20193536\Documents\Arduino\libraries\RadioHead/RHHardwareSPI.h:10,

                 from C:\Users\20193536\Documents\Arduino\libraries\RadioHead\RHHardwareSPI.cpp:7:

C:\Users\20193536\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.6\libraries\SPI\src/SPI.h:186:15: note: declared private here

   inline void detachInterrupt() { SPI0.INTCTRL &= ~(SPI_IE_bm); }

               ^~~~~~~~~~~~~~~

exit status 1

Error compiling for board Arduino Nano Every.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.



Go Up