mirror of
https://github.com/jscrane/Apple1.git
synced 2024-11-29 08:49:17 +00:00
TFT_ORIENT
This commit is contained in:
parent
d81a1c0d92
commit
9be438f526
6
config.h
6
config.h
@ -14,6 +14,12 @@
|
|||||||
#define TFT_FG GREEN
|
#define TFT_FG GREEN
|
||||||
#define TFT_BG BLACK
|
#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)
|
#if defined(USE_SD)
|
||||||
#define PROGRAMS "/apple1/"
|
#define PROGRAMS "/apple1/"
|
||||||
#else
|
#else
|
||||||
|
4
io.cpp
4
io.cpp
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
#include "pia.h"
|
#include "pia.h"
|
||||||
#include "io.h"
|
#include "io.h"
|
||||||
#include "config.h"
|
|
||||||
#include "hardware.h"
|
#include "hardware.h"
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#define ROWS 24
|
#define ROWS 24
|
||||||
#define COLS 40
|
#define COLS 40
|
||||||
@ -17,7 +17,7 @@ static unsigned r, c;
|
|||||||
static char screen[ROWS][COLS];
|
static char screen[ROWS][COLS];
|
||||||
|
|
||||||
void io::reset() {
|
void io::reset() {
|
||||||
TFTDisplay::begin(TFT_BG, TFT_FG, landscape);
|
TFTDisplay::begin(TFT_BG, TFT_FG, TFT_ORIENT);
|
||||||
clear();
|
clear();
|
||||||
_cy += 2;
|
_cy += 2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user