0 votes
in ESP8266 WiFi Color Kit by (290 points)
edited by

I've soldered up the ESP WiFi kit and I'm trying to get the spotify remote project to compile. Could anyone offer some advice as how to work around the errors below? I've added all of the required libraries as specified on the git repo and tried to follow all of the steps at the Weather Station setup page, but something is clearly wrong. 

From my untrained eye, it looks like there's a missing parameter in the PolledTimeout.h file, but I really don't know what I'm talking about.

I'm compiling this using Arduino IDE 1.8.9 on OS X 10.14.5.

Any suggestions are greatly appreciated.

I receive the following errors when compiling:

Edit: I switched to the appropriate Board Libraries (2.4.2) and this corrected my original issue; this has lead to the following issue when compiling:

In file included from /Users/aaronciuffo/Documents/Arduino/libraries/JPEGDecoder/src/JPEGDecoder.h:53:0,

                 from /Users/aaronciuffo/Documents/Arduino/esp8266-spotify-remote/esp8266-spotify-remote.ino:29:

/Users/aaronciuffo/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/SD/src/SD.h:26:7: error: redefinition of 'class fs::File'

 class File : public Stream {


In file included from /Users/aaronciuffo/Documents/Arduino/libraries/Mini_Grafx/src/MiniGrafx.h:31:0,

                 from /Users/aaronciuffo/Documents/Arduino/esp8266-spotify-remote/esp8266-spotify-remote.ino:26:

/Users/aaronciuffo/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/FS.h:48:7: error: previous definition of 'class fs::File'

 class File : public Stream


/Users/aaronciuffo/Documents/Arduino/esp8266-spotify-remote/esp8266-spotify-remote.ino:52:102: note: #pragma message: /Users/aaronciuffo/Documents/Arduino/esp8266-spotify-remote/esp8266-spotify-remote.ino(52) : Reminder: Comment out the line with LOAD_SD_LIBRARY /JPEGDecoder/src/User_config.h !

 #pragma message(Reminder "Comment out the line with LOAD_SD_LIBRARY /JPEGDecoder/src/User_config.h !")


Multiple libraries were found for "SD.h"

 Used: /Users/aaronciuffo/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/SD

 Not used: /Applications/Arduino.app/Contents/Java/libraries/SD

exit status 1

Error compiling for board LOLIN(WEMOS) D1 mini Pro.

1 Answer

0 votes
by (290 points)
selected by
Best answer

I missed an important step:

After installing the library go to your Arduino sketchbook folder (the one configured in Arduino Preferences > Sketchbook location). In that folder open file libraries/JPEGDecoder/src/User_config.h and comment line 5 so that it reads //#define LOAD_SD_LIBRARY.

by (19.9k points)
Glad you managed to fix this. I'm relieved it wasn't something missing in our instructions ;-)

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.