Toby Chui 2aad4c8794 Added software wol sender | 8 mēneši atpakaļ | |
---|---|---|
.. | ||
data | 8 mēneši atpakaļ | |
lib | 8 mēneši atpakaļ | |
README.md | 8 mēneši atpakaļ | |
espwol.ino | 8 mēneši atpakaļ | |
macsave.ino | 8 mēneši atpakaļ | |
sequences.ino | 8 mēneši atpakaļ | |
webserver.ino | 8 mēneši atpakaļ |
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.