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

    Image as button

    SOFTWARE
    2
    3
    2.8k
    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
      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
        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
          jjshoe
          last edited by

          This works great, thanks!

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