From 2273388b064d5a24bf080f6122f502f12257a5fe Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 30 Aug 2023 09:59:31 +0100 Subject: [PATCH] configure VGA resolution --- display.cpp | 2 +- hw/ttgo-t7-v14-mini32.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/display.cpp b/display.cpp index 26db134..d0ce677 100644 --- a/display.cpp +++ b/display.cpp @@ -92,7 +92,7 @@ void Display::begin(colour_t bg, colour_t fg, orientation_t orient) { vga.end(); init = true; vga.begin(); - vga.setResolution(VGA_480x300_75Hz); + vga.setResolution(VGA_RESOLUTION); canvas.setBrushColor(rgb(_bg)); canvas.clear(); diff --git a/hw/ttgo-t7-v14-mini32.h b/hw/ttgo-t7-v14-mini32.h index 0a63c36..7293abf 100644 --- a/hw/ttgo-t7-v14-mini32.h +++ b/hw/ttgo-t7-v14-mini32.h @@ -3,6 +3,10 @@ // Display #define USE_VGA +#if !defined(VGA_RESOLUTION) +#define VGA_RESOLUTION VGA_480x300_75Hz +//#define VGA_RESOLUTION VGA_320x200_75HzRetro +#endif // PS/2 Keyboard #define USE_KBD