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

    Image as button

    Scheduled Pinned Locked Moved SOFTWARE
    3 Posts 2 Posters 3.9k 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.
    • J Offline
      jjshoe
      last edited by

      Using the m5stack core2, uiflow, and blockly. Am I missing some obvious way to use an image as a button on the touch screen? I can't find a way to assign an image to a button, nor can I find a way to assign some sort of listener to the image.

      Is my only option to get screen coordinates of a touch? That seems like a handful.

      1 Reply Last reply Reply Quote 1
      • felmueF Offline
        felmue
        last edited by

        Hello @jjshoe

        have you tried to put a button behind a picture? Use the layer value to hide the button behind the picture. Works for me.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • J Offline
          jjshoe
          last edited by

          This works great, thanks!

          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