♻️ Consolidate DGUSScreenHandler class (#24067)

This commit is contained in:
Scott Lahteine
2022-04-23 05:00:46 -05:00
committed by GitHub
parent 6a05702c20
commit ac4fefa49a
14 changed files with 420 additions and 1040 deletions

View File

@@ -42,9 +42,6 @@
#endif
// endianness swap
inline uint16_t swap16(const uint16_t value) { return (value & 0xFFU) << 8U | (value >> 8U); }
#if ENABLED(DGUS_LCD_UI_ORIGIN)
#include "origin/DGUSScreenHandler.h"
#elif ENABLED(DGUS_LCD_UI_MKS)
@@ -55,7 +52,7 @@ inline uint16_t swap16(const uint16_t value) { return (value & 0xFFU) << 8U | (v
#include "hiprecy/DGUSScreenHandler.h"
#endif
extern DGUSScreenHandler ScreenHandler;
extern DGUSScreenHandlerClass ScreenHandler;
// Helper to define a DGUS_VP_Variable for common use-cases.
#define VPHELPER(VPADR, VPADRVAR, RXFPTR, TXFPTR) { \