Navigation

    M5Stack Community

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

    Best posts made by Gaviota

    • Code for UiFlow-execute block needed for reading and writing the sd-card

      Hi everyone!
      Using UiFlow V1.3.5-Beta, i'm buliding a hour counter for my boat engine.

      The new timer blocks are great and very helpful, many thanks to the team.

      To store and restore the cumulated seconds i need code for the UiFlow-execute block for reading and writing the sd-card:

      • Is there anyone who can help me?
      • Or are SD-card blocks foreseeen for the next beta version?

      For a first preview of the hour counter here you can see the display content:

      0_1566830111802_hour_counter.jpg

      ... translation of the german text:
      Title:

      • Betriebsstunden = Operating Hours

      Labels:

      • Stunden = Hours
      • Tag = Day
      • Batterie = Battery

      The Button Labeles are in english

      posted in UIFlow
      G
      Gaviota
    • RE: "Identifier redefined as global" error when using Blockly functions

      @lukasmaximus @m5stack @ajb2k3 @admin
      Critical bug with the word "global" at python code transformation from UIFlow 1.6.2

      @world101
      ... i agree with you, there is a critical bug in UIFlow 1.6.2.

      E.g. using the word "global" causes the python code transformation to replace the following text with all defined variables. Or defining a function with parameters causes a global definition in this function with the given paramater (look at my short test_global-program):
      0_1598192973024_global1.jpg

      with variables: value, var01
      var01 is set to "Bug with text global"

      In function "dosomething" with given parameter "value" i placed an Execute-code block with following content:
      # Test function for global error
      # look for global error
      # look for Global error

      when switching to </>Python - page you can see that UIFlow made incorrect code transformation:
      0_1598193335312_global2.jpg

      This code cann not run because:
      Line 17: the identifier "value" is redifined as global
      Line 27: the text after the word "global" is replaced by "var01, value" and the closing quotation mark is missing

      As you can see, each time the word "global" appears, the following text is replaced by all defined variables (see lines 18, 19 and 27).

      In line 20, the word "global" begins with a capital letter which doesn't lead to mistakes in code transformation.

      Note:
      With UIFlow 1.6.1 desktop version this problem does not exist!

      posted in Bug Report
      G
      Gaviota
    • RE: Saving and reusing variables?

      How many write operations are maximal at the EPROM possible?

      posted in Lessons and Guides
      G
      Gaviota