Serve the ESP32 frontend over httpserver/WebSocket, drive eight WS2812 strips with PIO/DMA patterns on core1, and keep Wi-Fi control on core0. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
351 B
C
21 lines
351 B
C
#ifndef FLASH_STORE_H
|
|
#define FLASH_STORE_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define FLASH_STORE_MAX 4096
|
|
|
|
bool flash_store_load(const char *name, char *out, size_t out_len, size_t *out_size);
|
|
bool flash_store_save(const char *name, const char *data, size_t len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|