我正在使用bitluni的vga库(https://github.com/bitluni/ESP32Lib)。我希望能够更改显示器上不同大小文本的字体/文本大小。
我尝试使用Adadruit GFX库,但无法使其正常工作。
我希望能够做类似的事情
#include <Adafruit_GFX.h>
#include <ESP32Lib.h>
#include <Fonts/FreeMonoBoldOblique12pt7b.h>
const int redPin = 14;
const int greenPin = 19;
const int bluePin = 27;
const int hsyncPin = 12;
const int vsyncPin = 13;
void setup()
{
tft.reset();
tft.begin();
tft.setfont(&FreeMonoBoldOblique12pt7b);
vga.init(myMode,redPin,greenPin,bluePin,hsyncPin,vsyncPin);
vga.setfont(CodePage437_9x16);
vga.println("Hello,world!");
tft.setTextSize(2);
vga.println("Hello,world!");
}
在尝试使用gfx库时,我不断在该范围内未声明tft