ESP32 and SPIFFS Step By Step
Вставка
- Опубліковано 11 вер 2024
- ESP32 and SPIFFS Step By Step.
Working through some example sketches to play video on ESP32 and the ILI9341, I find the wiring for the SD card does not seem to work like it does on the ILI9225. So I push on to use SPIFFS examples. This is when I realize I have not worked with SPIFFS before so let's learn how to work with SPIFFS on ESP32.
My previous video:
Getting Started with ESP32 and the ILI9341 TFT LCD Display
• Getting Started with E...
Working on examples from:
Play Video With ESP32
www.instructab...
Arduino ESP32FS Plugin
github.com/me-...
How to delete a file from SPIFFS
techtutorialsx...
man i've been failing so hard for days just to make my own mini tv. i still could not make it work but while watching your videos it makes me smile when you smile :D i guess that makes what all these hard stuff bearable. so thank you. hope someday i can play a video with my ST7735S
I think the display will work. It's the ESP32 that has the limitations. There is no separate GPU or sound chip. I like the Raspberry Pi Zero 2 W is a strong candidate. I just thought of that while I was answering your comment.
ua-cam.com/video/uQ27XDXj42Y/v-deo.htmlsi=tsEjK-_Tx44PwhST
@@ShotokuTech thank you for this quick response, i was not expecring this. And the solution looks like just what i needed. I will try it. Thank you so much sensei!
@@SercanSalkir It will be interesting to see the display connected to the Pi. It's something I have not tried yet.
This esp32 series is the best❤️
Thanks. I am working on the next one already.
this was a very SPIFFy tutorial!
Thanks Jimmy! You nailed it with this comment!
no way this was 4 hours ago I've just been fighting through this today lol
I tried to get it to you in time! LOL. Thanks.
Thank you! You helped me solve my issue.
Thank you. Good to hear. Best wishes.
more cool stuff!
Thanks friend.
Sd card failure may be due to power supply issue. Seems like I saw somewhere that sd card has a spike in current draw that causes failure. I think they added a capacitor somewhere to smooth out the power spike. Maybe this can help you solve your issue. Good luck.
Thanks. Yes it seems something may be missing when using the ILI9341 versus the ILI9225 the author is using in their example.
This is a little complicated, very useful, thanks for sharing
Thanks Judy. I still learn something new every day!
does it work on arduino 2.3.2?
To be honest I have never gone back to try it on newer versions. Mostly because I am always working on the next thing. Best wishes.
Interesting...🤔
Thanks Cas! 😅
Cool!
Thanks. More to come. Taking it one step at a time.
I finally got this to work, but my .rgb video is all scrambled.
The MJPEG video works? Thanks.
Como yo paso para una variable char el contenido que guarde en el archivo prueba.txt.
Yo hice esto pero no funciona:
File file2=SPIFFS.open("/prueba.txt")
if(!file2)
{
Serial.println(Failed to open file for reading");
return;
Serial.print("contenido ");
While(file2.availble())
{
char rc=file2.read();
}
Serial.print(rc);
file2.close();
No me funciona
Parece que estás haciendo algo diferente. La lucha es real, amigo.
@@ShotokuTech no entendí su repuesta
@@ernestorivero9909 This is the original code:
#include "SPIFFS.h"
void listAllFiles(){
File root = SPIFFS.open("/");
File file = root.openNextFile();
while(file){
Serial.print("FILE: ");
Serial.println(file.name());
file = root.openNextFile();
}
}
void setup() {
Serial.begin(115200);
if (!SPIFFS.begin(true)) {
Serial.println("An Error has occurred while mounting SPIFFS");
return;
}
File file = SPIFFS.open("/test.txt", FILE_WRITE);
if (!file) {
Serial.println("There was an error opening the file for writing");
return;
}
if (file.print("some content")) {
Serial.println("File was written");
} else {
Serial.println("File write failed");
}
file.close();
Serial.println("
---BEFORE REMOVING---");
listAllFiles();
SPIFFS.remove("/test.txt");
Serial.println("
---AFTER REMOVING---");
listAllFiles();
}
void loop() {}
@@ShotokuTech Gracias profe pero ya lo logre hice esto:
static byte n=0;
char rc:
char ra[20];
While(file.available())
{
rc=file.read();
ra[n]=rc;
n++;
}
Serial.print("ra ");
Serial.println(ra);
Con esto paso el contenido que tengo en el archivo de SPIIFF a una variable char y luego con esta variable puedo hacer cualquier cosa
@@ernestorivero9909 nada
Such a wonderful video
Thanks for watching Judy Plus!
amayzing!!!
Thanks!
omaygoood vaow
Yes!!😃
no
Maybe?