mirror of
https://github.com/Xinyuan-LilyGO/TTGO_TWatch_Library.git
synced 2026-03-24 00:46:55 +01:00
fix font null bug
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
|
||||
#include <TTGO.h>
|
||||
|
||||
void plotNeedle(int value, byte ms_delay);
|
||||
void analogMeter();
|
||||
|
||||
TTGOClass *ttgo;
|
||||
|
||||
#define TFT_GREY 0x5AEB
|
||||
@@ -34,7 +37,7 @@ void setup(void)
|
||||
ttgo = TTGOClass::getWatch();
|
||||
ttgo->begin();
|
||||
ttgo->openBL();
|
||||
|
||||
ttgo->eTFT->setTextFont(1);
|
||||
ttgo->eTFT->fillScreen(TFT_BLACK);
|
||||
|
||||
analogMeter(); // Draw analogue meter
|
||||
|
||||
Reference in New Issue
Block a user