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..3f9569bd 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(); };