mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-04 03:39:56 +00:00
commit
129edde338
@ -94,10 +94,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
// Define this if you know you have that controller or your "SSD1306" misbehaves.
|
// Define this if you know you have that controller or your "SSD1306" misbehaves.
|
||||||
//#define USE_SH1106
|
//#define USE_SH1106
|
||||||
|
|
||||||
// Flip the screen upside down by default as it makes more sense on T-BEAM
|
|
||||||
// devices. Comment this out to not rotate screen 180 degrees.
|
|
||||||
#define SCREEN_FLIP_VERTICALLY
|
|
||||||
|
|
||||||
// Define if screen should be mirrored left to right
|
// Define if screen should be mirrored left to right
|
||||||
// #define SCREEN_MIRROR
|
// #define SCREEN_MIRROR
|
||||||
|
|
||||||
|
@ -947,8 +947,12 @@ void Screen::setup()
|
|||||||
|
|
||||||
#ifdef SCREEN_MIRROR
|
#ifdef SCREEN_MIRROR
|
||||||
dispdev.mirrorScreen();
|
dispdev.mirrorScreen();
|
||||||
#elif defined(SCREEN_FLIP_VERTICALLY)
|
#else
|
||||||
dispdev.flipScreenVertically();
|
// Standard behaviour is to FLIP the screen (needed on T-Beam). If this config item is set, unflip it, and thereby logically flip it.
|
||||||
|
// If you have a headache now, you're welcome.
|
||||||
|
if (!config.display.flip_screen) {
|
||||||
|
dispdev.flipScreenVertically();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Get our hardware ID
|
// Get our hardware ID
|
||||||
|
Loading…
Reference in New Issue
Block a user