When I try to build it after I copied the code into my main.cpp, the error below occurs:
In file included from .pio\libdeps\nanoatmega328\RF24\RF24.cpp:10:0:
.pio\libdeps\nanoatmega328\RF24\RF24_config.h:93:29: fatal error: SPI.h: No such file or directory
I have searched through Internet and it turns out that the SPI.h is an inbuilt file. I have also found post citing the same problem but I don’t understand the solution in it. Please guide me through this.