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

    M5burner on windows7 cannot flash

    SOFTWARE
    5
    28
    86.2k
    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.
    • T
      Thrasher @Ariane98
      last edited by

      @ariane98 show us your code

      Ariane98A 1 Reply Last reply Reply Quote 0
      • Ariane98A
        Ariane98 @Thrasher
        last edited by

        from m5stack import *
        from m5ui import *
        from uiflow import *
        import imu

        setScreenColor(0x111111)

        imu0 = imu.IMU()
        label0 = M5TextBox(27, 7, "AccX", lcd.FONT_Default,0xFFFFFF, rotate=0)

        setScreenColor(0x33ff33)
        lcd.font(lcd.FONT_DejaVu24)
        lcd.print('FelX', 10, 30, 0xcc33cc)
        wait(3)
        while True:
        label0.setText(str(imu0.acceleration[0]))
        wait(1)
        wait_ms(2)

        1 Reply Last reply Reply Quote 0
        • Ariane98A
          Ariane98
          last edited by

          when I try the exact same blocks than in https://www.youtube.com/watch?v=zNxKkfbEkKU (label show get X gyr), I get this "I2C bus error(6)"

          1 Reply Last reply Reply Quote 0
          • Ariane98A
            Ariane98
            last edited by

            and from arduino IDE I get values from IMU
            So I guess it has with UIFlow interface to do ?

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

              Your first issue on the first PC is that for some reason UIFlow is looking at the 2.7 version and not the 3.6 version of python. Check your python environmental setup as this happens if the environment is wrong (I used to get this often when running 2 version of python.

              Second issue. what hardware are you running, what firmware version are you running and what version of UIFlow are you running?
              It sounds like you haven't got UIFlow set to M5Stick.

              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
              • Ariane98A
                Ariane98
                last edited by

                Code runs on the stick, excepted whan I try to use IMU.
                Both firmware and UIFlow are UIFlowv1.3.2

                ajb2k3A Ariane98A 2 Replies Last reply Reply Quote 0
                • ajb2k3A
                  ajb2k3 @Ariane98
                  last edited by

                  @ariane98 Which stick?
                  The old black or the Orange Stick C?

                  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
                  • Ariane98A
                    Ariane98 @Ariane98
                    last edited by

                    Orange

                    1 Reply Last reply Reply Quote 0
                    • Ariane98A
                      Ariane98
                      last edited by

                      btw, in arduino, how do you access the built in red led?
                      Docs showed pin 10 but it's no working...

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

                        @ariane98 said in M5burner on windows7 cannot flash:

                        btw, in arduino, how do you access the built in red led?
                        Docs showed pin 10 but it's no working...

                        Try GPIO10

                        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!

                        Ariane98A 1 Reply Last reply Reply Quote 0
                        • Ariane98A
                          Ariane98 @ajb2k3
                          last edited by

                          Strangely, it does light the led when I use digitalWrite(10, HIGH) but then nothing happens with digitalWrite(10, LOW)
                          If I use digitalWrite(10, LOW) first, it sets the led ON...

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

                            Ok I'm running 1.4 and getting a syntex error.
                            Try upgrading to 1.4.0 beta and try again.

                            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!

                            Ariane98A 1 Reply Last reply Reply Quote 0
                            • Ariane98A
                              Ariane98 @ajb2k3
                              last edited by

                              @ajb2k3
                              Thanks for your help
                              I intended to use m5stick with kids but maybe it's too early...
                              Both UIFlow and Arduino environments seem still unpredictable

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

                                @ariane98 Its strange because all I use is UIFlow and I am writing an english book on it (samples available to download in the projects forum)
                                For the current M5StickC competition i'm using the IMU in my project however, I'm using the online version and programming over wifi.

                                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!

                                Ariane98A 2 Replies Last reply Reply Quote 0
                                • Ariane98A
                                  Ariane98 @ajb2k3
                                  last edited by

                                  @ajb2k3
                                  I am using UIFlow online too, but no luck with IMU...

                                  1 Reply Last reply Reply Quote 0
                                  • Ariane98A
                                    Ariane98 @ajb2k3
                                    last edited by

                                    @ajb2k3
                                    is it possible too use the stick as a vry simple webserver?

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

                                      Don't know about the web server but here is my imu test file
                                      https://github.com/Ajb2k3/UIFlowHandbook/blob/master/main (8).m5f

                                      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!

                                      Ariane98A 1 Reply Last reply Reply Quote 0
                                      • Ariane98A
                                        Ariane98 @ajb2k3
                                        last edited by

                                        @ajb2k3
                                        I get the same I2C bus error
                                        If I upload it to the stick I get a grey screen with no data displayed

                                        Ariane98A 1 Reply Last reply Reply Quote 0
                                        • Ariane98A
                                          Ariane98 @Ariane98
                                          last edited by

                                          updated to 1.4.0 beta and that's OK now
                                          Thank you
                                          I've looked at your book...quite nice

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

                                            @ariane98 said in M5burner on windows7 cannot flash:

                                            updated to 1.4.0 beta and that's OK now
                                            Thank you
                                            I've looked at your book...quite nice

                                            Its still WIP and I am open to comments a criticism.

                                            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
                                            • First post
                                              Last post