feat: ESP-NOW link, beat sync and control messages in the C++ driver
- espnow_link, ctrl_msg and beat_sync: the reliable link, envelopes and beat-synced timing. - ctrl_msg: accept an envelope with the trailing save byte. - patterns_frame() and espnow_link_poll() split out of their tasks, so the WebAssembly simulator can drive one frame and one link pass from a timer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
94e300f6ad
commit
24dd5ffb15
30 files changed
+2159
-158
No files matched your search
+5
-1
@@ -9,7 +9,8 @@
|
||||
#include "esp_err.h"
|
||||
#include "patterns.h"
|
||||
|
||||
#define PRESETS_MAX 32
|
||||
// Flash holds about 50 presets (the nvs partition is 24 KB); 48 leaves room for garbage collection
|
||||
#define PRESETS_MAX 48
|
||||
|
||||
/** @brief Load the saved presets and the startup name from NVS. Call after NVS is initialised. */
|
||||
esp_err_t presets_init(void);
|
||||
@@ -26,6 +27,9 @@ const preset_t *presets_at(size_t i);
|
||||
/** @brief Create a preset, or update the one with the same name. ESP_ERR_NO_MEM when full. */
|
||||
esp_err_t presets_save(const preset_t *preset);
|
||||
|
||||
/** @brief Saves refused since boot: store full, or flash write failed. */
|
||||
uint32_t presets_dropped(void);
|
||||
|
||||
/** @brief Put the presets in this order. Names not given keep their place at the end. */
|
||||
esp_err_t presets_set_order(const char *const *names, size_t n);
|
||||
|
||||
|
||||
Reference in new issue
Block a user