Announcement

Collapse
No announcement yet.

changing a string color in arduino code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • changing a string color in arduino code

    Hi, maybe it is already asked somewhere but i didn't found it, how can i change a string color by Arduino code?
    I explain, i'm realizing an autotest program inside my program and i want that if i print in string object OK for example, it appears in green and if i print NOK, it appears in red. I don't know how to do this in Arduino code (C langage).
    for example :
    genie.WriteStr(1,"OK") or genie.Writestr(1,"NOK") but how to precise the color if it's possible?
    thank you!
    Best Regards.
    Sylvain

  • #2
    Hi Sylvain

    Welcome to the forum

    It isn't possible to change the colour via the Arduino but you could have 2 String objects one on top of the other, one in green text and the other in red text. The Arduino could then write to the strings individually when needed eg,

    genie.WriteStr(1,"OK");
    genie.WriteStr(2,"NOK");

    I hope this helps

    Best regards

    Paul

    Comment

    Working...
    X