mirror of
https://github.com/s00500/ESPUI.git
synced 2026-02-06 03:22:41 +00:00
chreate ports of all examples for pio
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
This commit is contained in:
17
pio_examples/prepareFilesystem/src/prepareFilesystem.cpp
Normal file
17
pio_examples/prepareFilesystem/src/prepareFilesystem.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <Arduino.h>
|
||||
#include <ESPUI.h>
|
||||
|
||||
void setup(void)
|
||||
{
|
||||
Serial.begin(115200);
|
||||
ESPUI.setVerbosity(Verbosity::Verbose); //Enable verbose output so you see the files in LittleFS
|
||||
delay(500); //Delay to allow Serial Monitor to start after a reset
|
||||
Serial.println(F("\nPreparing filesystem with ESPUI resources"));
|
||||
ESPUI.prepareFileSystem(); //Copy across current version of ESPUI resources
|
||||
Serial.println(F("Done, files..."));
|
||||
ESPUI.list(); //List all files on LittleFS, for info
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user