Skip to content

Commit 730493e

Browse files
committed
Fixed serving files from SPIFFS.
1 parent 8f8bac2 commit 730493e

File tree

5 files changed

+761
-21
lines changed

5 files changed

+761
-21
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Control addressable LEDs with an ESP32 via a web browser over Wi-Fi.
2323
* [ ] solid color
2424
* [ ] fire cooling/sparking
2525
* [ ] twinkle speed/density
26-
26+
2727
## Requirements
2828

2929
### Hardware
@@ -66,3 +66,13 @@ Recommended by [Adafruit NeoPixel "Best Practices"](https://learn.adafruit.com/a
6666
* [samguyer/FastLED](https://github.com/samguyer/FastLED)
6767
* [ESP32 Arduino Libraries & Tools](https://github.com/espressif/arduino-esp32)
6868
* [ESP8266/ESP32 WebServer](https://github.com/bbx10/WebServer_tng)
69+
70+
#### SPIFFS fix
71+
72+
To fix an [issue with serving files from SPIFFS over the web server](https://github.com/jasoncoon/esp32-fastled-webserver/issues/1), I used Yves BAZIN's fix here: https://github.com/hpwit/lib
73+
74+
Copy `libspiffs.a` to the ESP32 tools directory:
75+
`\Documents\Arduino\hardware\espressif\esp32\tools\sdk\lib\libspiffs.a`
76+
77+
And copy `esp32fs.jar` to the Arduino tools directory:
78+
`\Documents\Arduino\tools\ESP32FS\tool\esp32fs.jar`

esp32-fastled-webserver.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void listDir(fs::FS &fs, const char * dirname, uint8_t levels) {
180180

181181
void setup() {
182182
pinMode(led, OUTPUT);
183-
digitalWrite(led, 0);
183+
digitalWrite(led, 1);
184184

185185
// delay(3000); // 3 second delay for recovery
186186
Serial.begin(115200);

0 commit comments

Comments
 (0)