TelephoneBill
Well-known member
Just started with NRF24L01. Not used these boards before. Hit a compile issue with "Serial.printf".
I have modified some code that I already use the SPI bus for on an ADF4351 board (which works fine). I have included two new "includes" as shown here...
#include <stdint.h>
#include <SPI.h>
#include <nRF24L01.h> //new
#include <RF24.h> //new
The code imported was from another forum post which directed me to...
https://lastminuteengineers.com/nrf24l01-arduino-wireless-communication/
The only real difference between my own code and the imported "lastminuteengineers" code is that I already have defined "Serial.begin(115200);" so deleted their Serial.begin in the receive section.
Now here is my compile error. It seems to me that my own "Serial.printf" may be clashing with a "#define printf Serial.printf", but I don't fully understand the error message. If I comment out the line shown as Line 179, then it complies OK with just a warning. Any help would be appreciated...
I have modified some code that I already use the SPI bus for on an ADF4351 board (which works fine). I have included two new "includes" as shown here...
#include <stdint.h>
#include <SPI.h>
#include <nRF24L01.h> //new
#include <RF24.h> //new
The code imported was from another forum post which directed me to...
https://lastminuteengineers.com/nrf24l01-arduino-wireless-communication/
The only real difference between my own code and the imported "lastminuteengineers" code is that I already have defined "Serial.begin(115200);" so deleted their Serial.begin in the receive section.
Now here is my compile error. It seems to me that my own "Serial.printf" may be clashing with a "#define printf Serial.printf", but I don't fully understand the error message. If I comment out the line shown as Line 179, then it complies OK with just a warning. Any help would be appreciated...