mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-11-12 02:27:35 +00:00
The touch UI (src/ui-touch, unmodified apart from WADA_WEB board guards) builds for macOS with CMake and runs in an SDL2 window: a compat layer for the Arduino/ESP-IDF/FreeRTOS surface, a MyMesh stand-in with a MeshBackend interface (DemoBackend now), and the web board's SDL display/touch/keyboard drivers. WEB_BUILD.md follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
701 B
C++
20 lines
701 B
C++
#pragma once
|
|
// SPIFFS on a host: the arduino-esp32 VFS file layer (arduino/vfs_api.cpp, unmodified)
|
|
// over a host directory <data>/spiffs. SPIFFS has a flat namespace ("/a/b" is a file
|
|
// name, not a folder), so writes create missing parent folders here to match.
|
|
// totalBytes() reports the touch boards' SPIFFS partition size; usedBytes() is real.
|
|
#include "arduino/FS.h"
|
|
namespace fs {
|
|
class SPIFFSFS : public FS {
|
|
public:
|
|
SPIFFSFS();
|
|
bool begin(bool formatOnFail = false, const char* basePath = "/spiffs", uint8_t maxOpenFiles = 10,
|
|
const char* partitionLabel = NULL);
|
|
bool format();
|
|
size_t totalBytes();
|
|
size_t usedBytes();
|
|
void end();
|
|
};
|
|
}
|
|
extern fs::SPIFFSFS SPIFFS;
|