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

    UIFlow basics, few beginner questions

    UIFlow
    2
    6
    8.0k
    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.
    • S
      Serge
      last edited by Serge

      Hi everybody,
      i'm quite new with M5stack and UIFlow (V 1.4.5.)
      I m not so bad, i made a nice program with a customize DHT12 and ENV libraries
      (because I2C bus was Error 6)
      Took me some times to understand librairies were on Github etc.
      but there are a few points i can't deal with.

      1 the OPEN SAVE choices seems not functionnal
      2 sometimes, i don't have the Project icon and the project name's field at the top left corner.
      3 sometimes i have the UNITS white cross on the left screen to add some unit, sometimes i have not
      4 it seems possible to go Blocks --> Python code but never Python Code --> Blocks, so it s impossible to pick some Block code and insert in python coding interface
      5 The USB mode never works while downloading script to Device (not a big problem, i use WIFi)

      6 (Edit) : Why i can't see SD card blocks in Advanced :
      https://m5stack.com/blogs/news/6-new-features-for-uiflow-1-4-0-beta
      Thanks a lot for your answers.

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

        4 - the Blocks are preprogrammed with code and so if you want to add custom code in python mode then UIFlow doesn't know how to handle it and just drops it.
        An alternative is to use the Execute Code block to add custom code.

        What operating system are you using and what internet browser are you using to program in UIFlow.
        USB mode from the web version is not fully working as it requires a development addon that is not available to several online web browser (its a very new function)

        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
        • S
          Serge
          last edited by

          Thanks for answer : I use windows 10 64 bits and firefox

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

            @serge said in UIFlow basics, few beginner questions:

            Thanks for answer : I use windows 10 64 bits and firefox

            Try chrome and see if you still get the issues 1, 2, 3.

            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
            • S
              Serge
              last edited by Serge

              I tried with chrome. I can say more.
              In chrome i open the Battery Animation in examples. I can save it, remame the file and open it again with chrome and firefox.
              The saved file contains 6 lines that begins like {"components":[{"id":"____screen","createTime":1545719428801,"name":"Screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#000000","backgroundImage":"","type":"screen"},

              When i try to save my own file with many lines of codes , the saved fils only contains 1 line of the same kind

              {"components":[{"id":"____screen","createTime":1587379478361,"name":"Screen","x":0,"y":0,"width":320,"height":240,"backgroundColor":"#222222","backgroundImage":"","type":"screen"

              I can see no traces of my code in it, and that file should be much longer than the first one.

              Further more, when in the Battery Animation i delete all the white rectangles and save the file, when i open it again, the white rectangles are still here.

              1 Reply Last reply Reply Quote 0
              • S
                Serge
                last edited by

                I don't know why but, now i have the SD card items in Advanced Menu. May be because i plugged once a SD card ?
                The white cross icon to add UNITS is here too.

                I ve notice that :
                when modification is done with Blocky and i save the file : the saved file is OK,
                when the same modification is done with micropython : the file can't be saved.

                As if the micropython screen wasn't really a part of the UIflow.
                Related to the issue n°4 above ??

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