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

    Any examples of tutorial on .m5b2 new custom block system? can't get function to return a value

    Scheduled Pinned Locked Moved Custom Blocks
    3 Posts 3 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.
    • J Offline
      jeanfabre
      last edited by

      Hi,

      Looking for examples on the new custom block system which extension is .m5b2

      I can't find how to return a value from a block ( either type)

      Thanks!

      Bye,

      Jean

      F A 2 Replies Last reply Reply Quote 0
      • F Offline
        flypeek @jeanfabre
        last edited by

        https://community.m5stack.com/post/13810

        1 Reply Last reply Reply Quote 1
        • A Offline
          aspen @jeanfabre
          last edited by

          @jeanfabre
          On web, just choice block type.
          86b7a25c93207d9a32e5b33471bb1f0.png

          For code, add return description like this:
          def func(self) -> int:
          return 0

          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