I just received a SparkFun Pro nRF52840 Mini and I’m working through the tutorial here: https://learn.sparkfun.com/tutorials/nr … cuitpython
I followed the directions about installing the Adafruit nRF52 boards then updating boards.txt and copying over the sparkfun_nrf52840_mini variant. After restarting the Arduino IDE I see the “SparkFun Pro nRF52840 Mini” board as an option, which I selected.
Next, I created a new sketch and copied over the example Blinky BLE code from the tutorial. However when I try to verify (or upload) the sketch, I get some compile errors:
/Users/user/Arduino/bletest/bletest.ino: In function 'void setup()':
bletest:7:3: error: 'Serial' was not declared in this scope
Serial.begin(9600); // Serial is the USB serial port
^~~~~~
/Users/user/Arduino/bletest/bletest.ino:7:3: note: suggested alternative: 'Serial1'
Serial.begin(9600); // Serial is the USB serial port
^~~~~~
Serial1
/Users/user/Arduino/bletest/bletest.ino: In function 'void loop()':
bletest:26:3: error: 'Serial' was not declared in this scope
Serial.println(buttonState);
^~~~~~
/Users/user/Arduino/bletest/bletest.ino:26:3: note: suggested alternative: 'Serial1'
Serial.println(buttonState);
^~~~~~
Serial1
exit status 1
'Serial' was not declared in this scope
I tried changing my board to Nordic nRF52840DK (PCA10056) like the tutorial recommended and that did work (I can compile the example and get more complicated examples working with no problem) however I’m concerned that using that board will not let me access things like the qwiic connector.
Is there a way to fix the compile errors? Should I ignore them and just use the Nordic board as my choice?