Skip to content

Cannot print variable #2

@bert2002

Description

@bert2002

Hi,

first of all thanks for the library it helps a lot. Now I am trying to print a string to the display with a ESP8266, but it does not accept it at all.

String MyText = "This is my text";
epd_disp_string(MyText, 100, 60);

and I get this:

error: cannot convert 'String' to 'const void*' for argument '1' to 'void epd_disp_string(const void*, int, int)'
         epd_disp_string(MyText, 100, 60);
                                         ^
exit status 1
cannot convert 'String' to 'const void*' for argument '1' to 'void epd_disp_string(const void*, int, int)'

I am not really good with Arduino. Any thoughts on this?

Thanks

bert

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions