MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / drawAPinfo

Function drawAPinfo

ESP32_AP-Flasher/src/contentmanager.cpp:2468–2488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2466#endif
2467
2468void drawAPinfo(String &filename, JsonObject &cfgobj, tagRecord *&taginfo, imgParam &imageParams) {
2469 if (taginfo->hwType == SOLUM_SEG_UK) {
2470 imageParams.symbols = 0x00;
2471 sprintf(imageParams.segments, "");
2472 return;
2473 }
2474
2475 TFT_eSprite spr = TFT_eSprite(&tft);
2476 JsonDocument loc;
2477 uint8_t screenCurrentOrientation = 0;
2478 getTemplate(loc, 21, taginfo->hwType);
2479
2480 initSprite(spr, imageParams.width, imageParams.height, imageParams);
2481 const JsonArray jsonArray = loc.as<JsonArray>();
2482 for (const JsonVariant &elem : jsonArray) {
2483 drawElement(elem, spr, imageParams, screenCurrentOrientation);
2484 }
2485
2486 spr2buffer(spr, filename, imageParams);
2487 spr.deleteSprite();
2488}
2489
2490#ifdef CONTENT_TIMESTAMP
2491void drawTimestamp(String &filename, JsonObject &cfgobj, tagRecord *&taginfo, imgParam &imageParams) {

Callers 1

drawNewFunction · 0.85

Calls 4

getTemplateFunction · 0.85
initSpriteFunction · 0.85
drawElementFunction · 0.85
spr2bufferFunction · 0.85

Tested by

no test coverage detected