From 6f944f651a79b5154fcb83fdee939ee31d03e93a Mon Sep 17 00:00:00 2001 From: Lutz Date: Sat, 24 Jan 2026 22:11:31 -0800 Subject: [PATCH 1/2] V1.13.19 - Updates - Support inverting and mirroring of InfoDisplays --- Changelog.md | 3 +++ Configuration.hpp | 6 ++++++ Version.h | 2 +- src/InfoDisplayRender.hpp | 6 ++++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 9b1edde0..dbb8a601 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,6 @@ +**V1.13.19 - Updates** +- Support inverting and mirroring InfoDisplays. + **V1.13.18 - Updates** - Final changes for OAE diff --git a/Configuration.hpp b/Configuration.hpp index a62e5c50..010fb040 100644 --- a/Configuration.hpp +++ b/Configuration.hpp @@ -73,6 +73,12 @@ #ifndef INFO_DISPLAY_I2C_SCL_PIN #define INFO_DISPLAY_I2C_SCL_PIN 4 #endif + #ifndef INFO_DISPLAY_UPSIDE_DOWN + #define INFO_DISPLAY_UPSIDE_DOWN 0 + #endif + #ifndef INFO_DISPLAY_MIRRORED + #define INFO_DISPLAY_MIRRORED 0 + #endif #endif // Used RA wheel version. Unless you printed your OAT before March 2020, you're using diff --git a/Version.h b/Version.h index 3fa9e59d..1f1c5155 100644 --- a/Version.h +++ b/Version.h @@ -3,4 +3,4 @@ // Also, numbers are interpreted as simple numbers. _ __ _ // So 1.8 is actually 1.08, meaning that 1.12 is a later version than 1.8. \_(..)_/ -#define VERSION "V1.13.18" +#define VERSION "V1.13.19" diff --git a/src/InfoDisplayRender.hpp b/src/InfoDisplayRender.hpp index f691222e..ca1c5d11 100644 --- a/src/InfoDisplayRender.hpp +++ b/src/InfoDisplayRender.hpp @@ -31,6 +31,12 @@ class InfoDisplayRender virtual void init() { _display->init(); + #if (INFO_DISPLAY_UPSIDE_DOWN == 1) + _display->flipScreenVertically(); + #endif + #if (INFO_DISPLAY_MIRRORED == 1) + _display->mirrorScreen(); + #endif _display->clear(); _display->displayOn(); }; From 81a22d2db3798996215107ac3c5cac3bb6b893c9 Mon Sep 17 00:00:00 2001 From: Lutz Date: Sat, 24 Jan 2026 22:14:35 -0800 Subject: [PATCH 2/2] Lint fixes --- src/InfoDisplayRender.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/InfoDisplayRender.hpp b/src/InfoDisplayRender.hpp index ca1c5d11..3f9569bd 100644 --- a/src/InfoDisplayRender.hpp +++ b/src/InfoDisplayRender.hpp @@ -31,12 +31,12 @@ class InfoDisplayRender virtual void init() { _display->init(); - #if (INFO_DISPLAY_UPSIDE_DOWN == 1) +#if (INFO_DISPLAY_UPSIDE_DOWN == 1) _display->flipScreenVertically(); - #endif - #if (INFO_DISPLAY_MIRRORED == 1) +#endif +#if (INFO_DISPLAY_MIRRORED == 1) _display->mirrorScreen(); - #endif +#endif _display->clear(); _display->displayOn(); };