🤖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

    Custom Blocks
    3
    3
    935
    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
      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
        flypeek @jeanfabre
        last edited by

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

        1 Reply Last reply Reply Quote 1
        • A
          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
          • First post
            Last post