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

    OMG, serial console!

    Micropython
    3
    6
    10.4k
    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.
    • D
      dclaar
      last edited by

      Maybe everyone else knows this, but I just discovered that you can connect to the M5stickC over the serial connection and get a python prompt!

      >plink -serial \\.\COM4 -sercfg 115200,8,1,n,n
      [0;32mI (8) boot: ESP-IDF v3.3-beta1-696-gc4c54ce07 2nd stage bootloader
      [0;32mI (9) boot: compile time 19:37:28
      ...
      Connected. Network config: ...
      Traceback (most recent call last):
        File "main.py", line 130, in <module>
        File "main.py", line 128, in <module>
        File "main.py", line 96, in GetAQI
      NameError: name 'wait_ms' isn't defined
      MicroPython v1.11-321-gac7da0a70-dirty on 2020-02-25; ESP32 module with ESP32
      Type "help()" for more information.
      
      ajb2k3A 1 Reply Last reply Reply Quote 1
      • ajb2k3A
        ajb2k3 @dclaar
        last edited by

        @dclaar Welcome to the Micropython world.
        This feature has been known and doumented several times, I think @lukasmaximus made a video for it.

        BTW if you use the new beta firmware (1.5.0) use Mu as the IDE as it make coding so much easer.
        BTW2: you can also access it in vstudio.

        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!

        D 1 Reply Last reply Reply Quote 0
        • K
          kylebuttress
          last edited by

          Hi

          I have found Thonny a nice editor as well, it lets you interact with the shell and transfer files.

          https://thonny.org

          1 Reply Last reply Reply Quote 0
          • D
            dclaar @ajb2k3
            last edited by

            @ajb2k3 Thanks! I figured that somebody knew about it, but I had searched for various terms like serial, console, debug, etc, and didn't find it, so I thought I'd post this to perhaps help others find it. :)

            1 Reply Last reply Reply Quote 0
            • D
              dclaar
              last edited by

              Thanks for the IDE recommendations.

              I like vstudio because I can load the vim extension and pretend that I'm using a terminal. :)
              (Shoveling python is my day job, so I don't tend to use an ide unless I have to).

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

                The serial console access is known as REPL.
                If you didn't know about REPL then it is no wonder that you are surprised.

                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