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

    Does M5Stack support event-driven programming?

    SOFTWARE
    3
    5
    5.7k
    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
      jerry_fuyi
      last edited by

      Wikipedia: "In computer programming, event-driven programming is a programming paradigm in which the flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or messages from other programs or threads."
      By utilizing a event-driven architecture, I can just program by assigning what functions should be called when an event occurs (ex. button pressed, ambient light stronger than a threshold, etc.).
      Recently I'm looking for some different development systems. Then I found M5Stack and was interested in it. Does M5Stack support event-driven programming?

      ajb2k3A 1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3 @jerry_fuyi
        last edited by

        @jerry_fuyi Yes, UIFlow supports event driven programming and there are quite a few event related blocks and loops that have been designed just for this.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • J
          jerry_fuyi
          last edited by

          I tried UIFlow and found the blocks supporting event-driven programming. Thank you!

          ajb2k3A T 2 Replies Last reply Reply Quote 1
          • ajb2k3A
            ajb2k3 @jerry_fuyi
            last edited by

            @jerry_fuyi sorry about the lack of information on the blocks at the moment as I am currently in the process of logging all the functions and testing them for my book

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            1 Reply Last reply Reply Quote 0
            • T
              Thrasher @jerry_fuyi
              last edited by

              @jerry_fuyi I suggest you to add some random logic blocks and then see it in python code - will be much easier to understand mechanics.
              Ofcourse, coding hardware is useless without event triggers most of time

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