🤖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

    Scheduled Pinned Locked Moved SOFTWARE
    2 Posts 2 Posters 3.8k Views 1 Watching
    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 Offline
      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 Offline
        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

        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