mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-19 02:55:54 +00:00
* Heltec Wireless Tracker fixes: getTextWidth() missing, PIN_BOARD_SDA/SCL
This commit is contained in:
@@ -118,6 +118,13 @@ void ST7735Display::drawXbm(int x, int y, const uint8_t* bits, int w, int h) {
|
||||
display.drawBitmap(x, y, bits, w, h, _color);
|
||||
}
|
||||
|
||||
uint16_t ST7735Display::getTextWidth(const char* str) {
|
||||
int16_t x1, y1;
|
||||
uint16_t w, h;
|
||||
display.getTextBounds(str, 0, 0, &x1, &y1, &w, &h);
|
||||
return w;
|
||||
}
|
||||
|
||||
void ST7735Display::endFrame() {
|
||||
// display.display();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user