| 2466 | #endif |
| 2467 | |
| 2468 | void 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 |
| 2491 | void drawTimestamp(String &filename, JsonObject &cfgobj, tagRecord *&taginfo, imgParam &imageParams) { |
no test coverage detected