Port ESP32 Marauder to CYD 2432S028

This commit is contained in:
Just Call Me Koko
2025-04-25 17:32:28 -04:00
parent 97dce525a4
commit 4a90876d81
9 changed files with 413 additions and 180 deletions

View File

@@ -19,6 +19,10 @@
#include <TFT_eSPI.h>
#ifdef HAS_CYD_TOUCH
#include <XPT2046_Touchscreen.h>
#endif
// WiFi stuff
#define OTA_UPDATE 100
#define SHOW_INFO 101
@@ -72,6 +76,11 @@ class Display
TFT_eSPI_Button key[BUTTON_ARRAY_LEN];
const String PROGMEM version_number = MARAUDER_VERSION;
#ifdef HAS_CYD_TOUCH
SPIClass touchscreenSPI;
XPT2046_Touchscreen touchscreen;
#endif
bool printing = false;
bool loading = false;
bool tteBar = false;
@@ -105,6 +114,7 @@ class Display
// We can speed up scrolling of short text lines by just blanking the character we drew
int blank[19]; // We keep all the strings pixel lengths to optimise the speed of the top line blanking
uint8_t updateTouch(uint16_t *x, uint16_t *y, uint16_t threshold = 600);
void tftDrawRedOnOffButton();
void tftDrawGreenOnOffButton();
void tftDrawGraphObjects(byte x_scale);