refactoring into multiple files, not tested on hardware

This commit is contained in:
Adolfo Reyna
2025-12-09 18:41:03 -05:00
parent bc0e082b89
commit 47956bf64c
8 changed files with 552 additions and 439 deletions

31
epaper_manager.h Normal file
View File

@@ -0,0 +1,31 @@
#ifndef EPAPER_MANAGER_H
#define EPAPER_MANAGER_H
#include <stdbool.h>
/**
* Launches the e-Paper display handling loop on Core 1.
* This function returns immediately after launching the core.
*/
void epaper_start_background_thread();
/**
* Sends an update to the e-Paper display.
* @param entry The text content of the current line.
* @param finish_line If true, the line is committed (moved to the list of static lines).
* If false, it updates the current line being typed.
*/
void epaper_send_update(const char *entry, bool finish_line);
/**
* Clears all text entries and refreshes the display to white.
*/
void epaper_clear();
/**
* Forces a full refresh of the display on the next update.
* Useful for clearing ghosting.
*/
void epaper_force_refresh();
#endif // EPAPER_MANAGER_H