<div dir="ltr">Zdravim,<div><br></div><div>delam si ten palubni budik na lod s  e-ink displejem a ESP32. Ohybam nejake knihovny, ktere jsou v examplech...na displej uz kreslim, web mi take jede, ale zasekl jsem se na pro me nepochopitelne definici procedury:</div><div><br></div><div>void DrawStringAt(int x, int y, const char* text, sFONT* font, int colored);<br></div><div><br></div><div>ja jsem tu deklaraci puvodne nezkoumal, protoze primo vlozeny string jako parametr fungoval</div><div><br></div><div>Kdyz jsem to ale chtel pouzit takto tak jsem si nabehnul:</div><div><br></div><div><div>for (uint8_t i=0; i<server.args(); i++){</div><div>    rv_text =  server.argName(i) + ": " + server.arg(i);</div><div>    message += " " + rv_text+ "\n";</div><div>    paint.DrawStringAt(0, 0, rv_text, &Font8, UNCOLORED);</div><div>    epd.SetPartialWindow(paint.GetImage(), 0, 20+(i*12), paint.GetWidth(), paint.GetHeight());</div><div>  }</div></div><div><br></div><div><div><br></div><div>void DrawStringAt(int x, int y, const char* text, sFONT* font, int colored);</div><div>                                                           ^<br></div><div>epdpaint.h:56:10: note:   no known conversion for argument 3 from 'String' to 'const char*'<br></div></div><div><br></div><div>cela ta procedura je napsana takto:</div><div><br></div><div><div>void Paint::DrawStringAt(int x, int y, const char* text, sFONT* font, int colored) {</div><div>    const char* p_text = text;</div><div>    unsigned int counter = 0;</div><div>    int refcolumn = x;</div><div>    </div><div>    /* Send the string character by character on EPD */</div><div>    while (*p_text != 0) {</div><div>        /* Display one character on EPD */</div><div>        DrawCharAt(refcolumn, y, *p_text, font, colored);</div><div>        /* Decrement the column position by 16 */</div><div>        refcolumn += font->Width;</div><div>        /* Point on the next character */</div><div>        p_text++;</div><div>        counter++;</div><div>    }</div><div>}</div></div><div><br></div><div>Jak by se to melo upravit abyto bylo koser?</div><div><br></div><div>RV</div></div>