Hi…I’m want to read and write data to SD card. So I tried using SD-CARD-LIBRARY, but I got the error in sd2-card-config.h saying that Serial was not declared.
How to solve this issue?
Do you have #include “Particle.h” in your .ino?
Also, which version of the library are you using and have you built it before on another Device OS?
I use SdFat library.
I suggest you use SdFat
library instead.
It’s no surprise that defining a macro that in fact referes to itself isn’t going to work
#define Serial Serial
That’s what one migh call a circular reference.
3 Likes