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

    How to use "pushToSprite" in Core2

    SOFTWARE
    2
    2
    2.7k
    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.
    • R
      RonaldoDuarte
      last edited by

      Guys, I wasn't able to use "pushToSprite" in my M5Stack Core2. It seems that there's no such function in Core2 LCD library (http://docs.m5stack.com/en/api/core2/lcd_api). When I try to use it in Arduino I'll get the error
      'class TFT_eSprite' has no member named 'pushToSprite';
      What's the sense of working with Sprites if I cannot push one sprite on top of another?
      What could I do to solve such an issue?
      Thanks a lot.

      1 Reply Last reply Reply Quote 0
      • W
        wsanders
        last edited by wsanders

        Isn't the method called pushSprite?

        On a M5StickC-Plus, I use:

        setup():
        TFT_eSprite sgraph = TFT_eSprite(&M5.Lcd);
        ...
        sgraph.createSprite(GRAPHW, GRAPHH);
        ...

        loop():
        ...
        sgraph.pushSprite(TEXTW, 0);
        ....

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