I think this is my last post for this project which I hope will be of help to new users of this great graphics library.
The novelties of this latest release are the possibility to edit small text files, line by line, for example an html file to be sent to a web server as in this example:
or in this:
In CMD01 and CMD02 I put an example of how to read a directory of a remote FTP server and how to download a file from it.
To use these 2 commands you have to put the address of the remote server, username and password in the initial variables and in CMD02 the name of the file you want to download from the remote server.
In CMD03 I implemented the use of Serial2 (which I use to send .plt files to printers / cutters), leave the Uart Baud value at 0 if you have nothing connected to the port (GPIO 16 and 17) and the ground connected to the device, otherwise random characters will enter the serial monitor (unless you use the Serial2.end () command, but it is preferable not to use it for memory consumption).
In the example I am sending here, there is no name of the .plt file to send, but you can download it from your remote FTP server or upload it to the SPIFFS with the Data Upload of the Arduino Ide interface, and send it to your printer / cutter with the command CMD03.
These 3 commands are obviously just an example of how to implement the program, it is up to you to modify or exclude parts that do not interest you.
In the .zip file I have also attached 2 cases for Esp32, the big one for ESP32 + Ili9488 touch screen (found on Thingiverse but modified to have more space inside and to have better ventilation), and a smaller one for single Esp32 which offers good protection to the pins and ventilation thanks to the Esp32 writing on the lid.
Again a greeting to all the users of the forum (even if you did not help me at the beginning of the post, when I was groping in the dark in HOW to insert the code generated by Edgeline in your own project … but all is well that that ends well …
i made a Video in YouTube about this project and use with LVGL library
thanks again and goodbye.
Source File here:
EDIT: response.replace(“\r\n”, “”); not work correctly in case (2) : {/* EXAMPLE Copy file from FTP to SPIFFS */
so i replace routine and now is ok, because response give more “\r\n” that original file
now is correct:
SourcesFiles38.zip (301.4 KB)
And here the link to YouTube Video:
Enable Subtitles for see descriptions
Remember that i use this project with LVGL V 7.11