Toby Chui 2aad4c8794 Added software wol sender | před 7 měsíci | |
---|---|---|
.. | ||
data | před 7 měsíci | |
lib | před 7 měsíci | |
README.md | před 7 měsíci | |
espwol.ino | před 7 měsíci | |
macsave.ino | před 7 měsíci | |
sequences.ino | před 7 měsíci | |
webserver.ino | před 7 měsíci |
This guide will walk you through the process of uploading files, such as HTML, CSS, JavaScript, images, etc., to an ESP8266 microcontroller using the Arduino IDE.
Prepare your files: Add the files you want to upload to the ESP8266. These could be HTML, CSS, JavaScript, images, or any other files you need for your project.
Check if the data folder exists: In your Arduino sketch folder, there should be a folder named data
(all lowercase). This folder will hold the files you want to upload.
Place your files in the data folder: Copy or move your files into the data
folder. You can organize them into subdirectories if needed.
Upload files using the Arduino IDE:
Tools
> ESP8266 LittleFS Data Upload
. This will compress the data
folder and upload it to the ESP8266's SPIFFS or LittleFS filesystem.
Access uploaded files in your sketch:
You can access the uploaded files using functions like LittleFS.open()
in your sketch. For example:
File file = LittleFS.open("/filename.txt", "r");
Write your sketch: Now you can write your Arduino sketch as usual, add custom buttons actions and access the uploaded files from the SPIFFS or LittleFS filesystem.