🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    setTextWrap() and setTextArea() not working as expected, how auto new line and choose where to print text?

    PRODUCTS
    1
    1
    1.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tamoorh
      last edited by

      Hello!
      I'm trying to format strings on screen and I am having some trouble. I want to be able to write to the screen and have it auto new line when the text goes off the end. I also want to provide the position of the text. printf() allows me to auto new line, and drawString() helps me pick where I want to draw. I can't seem to figure out how to do both. I've tried to use both setTextWrap() and setTextArea(), but these don't seem to work as I expected.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post