Navigation

    M5Stack Community

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

    Best posts made by dclaar

    • OMG, serial console!

      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.
      
      posted in Micropython
      D
      dclaar
    • Where is the WiFi config held?

      I want to access the pre-existing WiFi config from micropython, the one you setup with M5burner.

      On 1.4.5, on the M5StickC, the SSID + password are stored in apps/config.json. This is cool, as I don't have to hard-code it into my apps.

      On 1.5.1, on the Core/Gray, there does not appear to be any equivalent file, yet it still knows the information. How do I access it?

      I tried wifi_history = machine.nvs_getstr("history") from WifiCfg.py, but machine doesn't have nvs_getstr().

      Is there any way to get this now? I really don't want to go back to hard-coding!

      posted in Micropython
      D
      dclaar
    • Recent copy of Micropython used?

      It there a more recent version of the micropython source than https://github.com/m5stack/M5Stack_MicroPython, which appears to be fairly old? (last updated on Aug 11, 2019). Or is that what's being used currently?

      I found https://github.com/m5stack/micropython, which is more recent (Oct 31, 2021), but it doesn't seem to be as complete: For example, the tft code doesn't seem to be there.

      posted in Micropython
      D
      dclaar