2023-11-07 00:11:12 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <GxEPD2_BW.h>
|
|
|
|
#include <native_pin.hpp>
|
|
|
|
#include <mcp23x17_pin.hpp>
|
|
|
|
#include "shared.hpp"
|
|
|
|
#include "config.hpp"
|
|
|
|
#include "fonts/fonts.hpp"
|
|
|
|
|
|
|
|
void setupDisplays();
|
|
|
|
void taskEpd(void *pvParameters);
|
|
|
|
|
|
|
|
void splitText(const uint dispNum, String top, String bottom, bool partial);
|
2023-11-08 19:29:06 +00:00
|
|
|
void splitTextPaged(const uint dispNum, String top, String bottom, bool partial);
|
|
|
|
|
2023-11-07 00:11:12 +00:00
|
|
|
void showDigit(const uint dispNum, char chr, bool partial, const GFXfont *font);
|
2023-11-08 19:29:06 +00:00
|
|
|
void showDigitPaged(const uint dispNum, char chr, bool partial, const GFXfont *font);
|
|
|
|
|
2023-11-07 00:11:12 +00:00
|
|
|
extern "C" void updateDisplay(void *pvParameters) noexcept;
|
2023-11-08 19:29:06 +00:00
|
|
|
void updateDisplayAlt(int epdIndex);
|
2023-11-07 00:11:12 +00:00
|
|
|
|
|
|
|
int getBgColor();
|
|
|
|
int getFgColor();
|
|
|
|
void setBgColor(int color);
|
|
|
|
void setFgColor(int color);
|
|
|
|
|
|
|
|
void setEpdContent(std::array<String, NUM_SCREENS> newEpdContent);
|
2023-11-07 20:26:15 +00:00
|
|
|
std::array<String, NUM_SCREENS> getCurrentEpdContent();
|