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

    M5GFX documentation correct for AtomS3R?

    Scheduled Pinned Locked Moved Arduino
    3 Posts 2 Posters 1.6k Views
    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.
    • P Offline
      ploegmma
      last edited by

      It seems the official documentation (the Arduino Guide linked to the web page of the AtomS3R) is not correct. Am I doing something wrong or is this documentation wrong? It says:

      drawChar
      Draw an unicode character.

      Syntax:

      size_t drawChar(uint16_t uniCode, int32_t, x, int32_t y, uint8_t font)

      But this doesn't compile. It should be something like: drawChar( x, y, char, color, color, zoom, zoom) (which seems to work fine)

      kurikoK 1 Reply Last reply Reply Quote 0
      • kurikoK Offline
        kuriko @ploegmma
        last edited by

        @ploegmma
        This function is not wrong, it is just overloaded multiple times
        The parameters I typed randomly can compile successfully.
        StickCP2.Display.drawChar('s', 0, 0, 2);

        Good morning, and welcome to the Black Mesa Transit System.

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          ploegmma @kuriko
          last edited by

          @kuriko
          Turns out there is an extra comma in there ("int32_t, x"). So a typo on the website (which I copied).

          But Although it compiles now I still could not figure out the last parameter. The doc says "uint8_t font" but thats something else then "IFont* font". What is 2 in your example?

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post