Closed Primus007 closed 4 years ago
If you want to use FAT, use the existing filesystem SDFS
. If you include SdFat.h
you're including the raw code from the library which is not supported as it redefines a bunch of stuff we use. Just use #include <SDFS.h>
(or #include <SD.h>
if you have some need for the older Arduino SD API).
----------------------------- Delete below -----------------------------
If your issue is a general question, starts similar to "How do I..", is related to 3rd party libs, or is related to hardware, please discuss at a community forum like esp8266.com.
INSTRUCTIONS
Basic Infos
Platform
Settings in IDE
Problem Description
I open the readwrite example and upload it. All works fine. but if i add #include
then i get this error:
ReadWrite:50:3: error: 'myFile' was not declared in this scope
myFile = SD.open("test.txt", FILE_WRITE);
exit status 1
reference to 'File' is ambiguous
i have nothing other changed except the one include line.
How can i solve this?
MCVE Sketch
Debug Messages