Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. stanely
    3. Best
    • Continue chat with stanely
    • Start new chat with stanely
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by stanely

    • Is there a way to reuse blockly code?

      Re: Support multiple files

      I've done a few Blockly programs with M5 and it's amazing how fast I can put together a prototype. I can write code that does amazing things without having to look up class methods or function arguments in the docs. I think this is the real strength of UIFlow that people overlook. You get to write working code instead of looking up docs.

      But with all the good UIFlow has, I can't find a way to easily reuse what I've done before. I need to pull in pieces of block functions and pieces from prior programs and edit them to fit my need in the current project. So I find myself writing the same stuff over again.

      The closest I see is the ability to create custom blocks and drop chunks of Python code into them from other projects/libraries. But this is not editable in Blockly, so I'm back to writing and editing Python code.

      I even tried using an online instance with a desktop instance open simultaneously hoping I could copy/paste chunks between them, but no luck. I can only duplicate blocks inside the one UIFlow instance. I can't copy it from one and paste it into the other.

      Is there a way to copy/paste pieces of Blockly between several files, or maybe import a Blockly m5f file into a current project? This would be very helpful if you want to write large apps and not re-invent the wheel every time you start a new one.

      Maybe I'm just missing something and there is a way to do this?

      posted in UIFlow
      stanely
    • UIFlow 2.0 Suggestion

      In case the UIFlow team is working on 2.0, please explore a means of adding modular programming concepts to Blockly. It would be great if blockly segments could be selected, saved, and imported. That way complex pieces of code could be reused, instead of re-created.

      posted in UIFlow
      stanely
    • RE: AWS Edukit as normal Core2 for Uiflow

      I figured out how to work the Core2 for AWS LED strips. Add a custom RGB LED Unit with custom port. SDA/TX is on 25, and SCL/RX on 22. The Number of LEDs is 10. Then set the neopixel device as you want it. LEDs 1-5 are the right side, and 6-10 are left.

      Remember to also Enable the bus power mode.

      posted in Core2 for AWS
      stanely
    • RE: Is there a way to reuse blockly code?

      @ajb2k3 That's too bad. It would be of great value to have a way to create libraries of reusable code.

      With Blockly you can get up and running really fast. But then you have to come to a screeching halt and start over with every new project.

      posted in UIFlow
      stanely
    • RE: UIFlow Desktop 1.0.17, Custom Block Problem?

      @ajb2k3 :( hope 2.0 is comes out soon.

      posted in UIFlow
      stanely
    • Another UIFlow 2.0 Suggestion

      It would be great if the UIFlow team could invent a way to print a UIFlow program in a readable form, in its entirety (all of it).

      posted in UIFlow
      stanely
    • RE: How do I get the exception details in UIFlow?

      @ajb2k3 That's a great tip! It's also a good way to quick debug the code using REPL.

      posted in UIFlow
      stanely