From 9be438f526abcd1c03a8791bc3183c126b827a63 Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Sun, 18 Nov 2018 12:48:10 +0000 Subject: [PATCH] TFT_ORIENT --- config.h | 6 ++++++ io.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index c019397..a28ea63 100644 --- a/config.h +++ b/config.h @@ -14,6 +14,12 @@ #define TFT_FG GREEN #define TFT_BG BLACK +#if defined(USE_UTFT) +#define TFT_ORIENT landscape +#elif defined(USE_ESPI) +#define TFT_ORIENT reverse_landscape +#endif + #if defined(USE_SD) #define PROGRAMS "/apple1/" #else diff --git a/io.cpp b/io.cpp index a85f29a..f229527 100644 --- a/io.cpp +++ b/io.cpp @@ -8,8 +8,8 @@ #include "pia.h" #include "io.h" -#include "config.h" #include "hardware.h" +#include "config.h" #define ROWS 24 #define COLS 40 @@ -17,7 +17,7 @@ static unsigned r, c; static char screen[ROWS][COLS]; void io::reset() { - TFTDisplay::begin(TFT_BG, TFT_FG, landscape); + TFTDisplay::begin(TFT_BG, TFT_FG, TFT_ORIENT); clear(); _cy += 2;