I'm trying to add an SD card to my project using the ESP8266SdFat library as I would like to use the software spi. I tried it in my program first and then after I encountered the error I'm trying to just get one of the examples to compile, but I always get the following error, datalogger.ino example:
In file included from C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdCard/../SpiDriver/SoftSPI.h:36:0,
from C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdCard/../SpiDriver/SdSpiDriver.h:277,
from C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdCard/SdSpiCard.h:35,
from C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/BlockDriver.h:32,
from C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdFat.h:32,
from C:\Users\mssuc\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\examples\dataLogger\dataLogger.ino:5:
C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdCard/../SpiDriver/DigitalPin.h: In function 'void fastDigitalToggle(uint8_t)':
C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdCard/../SpiDriver/DigitalPin.h:286:45: error: 'fastDigitalRead' was not declared in this scope
fastDigitalWrite(pin, !fastDigitalRead(pin));
^
C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdCard/../SpiDriver/DigitalPin.h:286:45: note: suggested alternative:
C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdCard/../SpiDriver/DigitalPin.h:263:6: note: 'sdfat::fastDigitalRead'
bool fastDigitalRead(uint8_t pin) {
^
C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdCard/../SpiDriver/DigitalPin.h:286:46: error: 'fastDigitalWrite' was not declared in this scope
fastDigitalWrite(pin, !fastDigitalRead(pin));
^
C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdCard/../SpiDriver/DigitalPin.h:286:46: note: suggested alternative:
C:\Users\mssuc\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266SdFat\src/SdCard/../SpiDriver/DigitalPin.h:242:6: note: 'sdfat::fastDigitalWrite'
void fastDigitalWrite(uint8_t pin, uint8_t val) {
^
exit status 1
Error compiling for board Generic ESP8266 Module.
I have upgraded arduino, esp8266 and visual micro to the latest version but no change in the error in either IDE. I have not been able to find any other post about this and am at a loss on how to correct. Any help would be greatly appreciated.
Thanks