MCPcopy Create free account
hub / github.com/BruceDevices/firmware / drawString

Method drawString

lib/TFT_eSPI/TFT_eSPI.cpp:5534–5540  ·  view source on GitHub ↗

** Function name: drawString (with or without user defined font) ** Description : draw string with padding if it is defined ***************************************************************************************/ Without font number, uses font set by setTextFont()

Source from the content-addressed store, hash-verified

5532***************************************************************************************/
5533// Without font number, uses font set by setTextFont()
5534int16_t TFT_eSPI::drawString(const String& string, int32_t poX, int32_t poY)
5535{
5536 int16_t len = string.length() + 2;
5537 char buffer[len];
5538 string.toCharArray(buffer, len);
5539 return drawString(buffer, poX, poY, textfont);
5540}
5541// With font number
5542int16_t TFT_eSPI::drawString(const String& string, int32_t poX, int32_t poY, uint8_t font)
5543{

Callers 1

drawButtonMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected