🤖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?

    Arduino
    2
    3
    452
    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
      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
        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
          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
          • First post
            Last post