-
Notifications
You must be signed in to change notification settings - Fork 13.3k
SD card with SPIFFS #1723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not an expert in C++, but SPIFFS library (FS.h) defines a namespace called "fs". It should be possible to differenciate class definitions using it. |
I found this useful [https://github.com/me-no-dev/Arduino/commit/72c2c3f4e2a0c4de29ce5f946417aed6130748d5]
|
Currently this isn't possible, because both SD and SPIFFS provide a class called |
Any progress on being able to use SD and SPIFFS at the same time? maybe this is a work around. |
Solution is explained here: #1524 (comment) |
Hardware: ESP-07
Core Version: 2.1.0-rc2
Description
Can I use both SD card lib and SPIFFS?
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 1MB/512kb
CPU Frequency: 160Mhz
Flash Mode: DIO
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck
include <FS.h>
include <SPI.h>
include <SD.h>
File hFile;
In file included from ESP_FileServer.ino:7:0:
C:\Users\boris\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\libraries\SD\src/SD.h:26:7: error: redefinition of 'class fs::File'
class File : public Stream {
^
In file included from ESP_FileServer.ino:5:0:
C:\Users\boris\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/FS.h:48:7: error: previous definition of 'class fs::File'
class File : public Stream
^
Multiple libraries were found for "SD.h"
Used: C:\Users\boris\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
The text was updated successfully, but these errors were encountered: