Skip to content

Commit 765e3bb

Browse files
authored
Tiny Font size code
1 parent 0c25622 commit 765e3bb

File tree

5 files changed

+3172
-27
lines changed

5 files changed

+3172
-27
lines changed

arduino/gameboy/gameboy.ino

+10-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@
5252
#ifdef lib_compile_vga32
5353
//#include <ESP32Lib.h> //Para VGA32
5454
//#include <Ressources/Font6x8.h>//Para VGA32
55-
#include "MartianVGA.h"
56-
#include "ESP32Lib/Ressources/Font6x8.h"//Para VGA32
55+
#include "MartianVGA.h"
56+
#ifdef use_lib_tinyFont
57+
#include "gb_sdl_font6x8.h"
58+
#else
59+
#include "ESP32Lib/Ressources/Font6x8.h"//Para VGA32
60+
#endif
5761
#include "def/hardware.h"
5862
#endif
5963

@@ -435,7 +439,10 @@ void setup()
435439
vga.init(vga.MODE320x175.custom(160,144), redPin, greenPin, bluePin, hsyncPin, vsyncPin); //Se ve bien
436440
#endif
437441
#endif
438-
vga.setFont(Font6x8);
442+
443+
#ifndef use_lib_tinyFont
444+
vga.setFont(Font6x8);
445+
#endif
439446
vga.clear(BLACK);
440447
ptrVGA = vga.backBuffer; //Puntero al buffer Video
441448
vga.clear(0); //Seccion VGA32

arduino/gameboy/gbConfig.h

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
//Modo hilos muy lento por ahora
2525
//#define use_lib_vga_thread
2626

27+
//No usa font bitluni, ahorra memoria
28+
//#define use_lib_tinyFont
29+
2730
//log serial usb
2831
#define use_lib_log_serial
2932

0 commit comments

Comments
 (0)