Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. koichirose
    K
    • Continue chat with koichirose
    • Start new chat with koichirose
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    koichirose

    @koichirose

    0
    Reputation
    3
    Posts
    58
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    koichirose Follow

    Posts made by koichirose

    • Deep Sleep with MicroPython

      Hi, I'd like to press the M5 button on my M5StickC-Plus, do something, turn it off/deep sleep and turn it back on with the 'M5' button, as it is easily accessible. Basically I think this is how one of those Dash buttons used to work.

      I tried with:

      axp.setLDO2State(False)
      axp.setLDO3State(False)
      

      The screen turns off, but the device seems very much alive (I tried issuing commands from the REPL) and, when unplugged, completely discharges in a short period of time (maybe a few hours?)

      Is there a way to do this? I saw there may be something for Arduino, not sure if it works reliably, but I'd be willing to port my code to Arduino to have this functionality.

      posted in M5 Stick/StickC
      K
      koichirose
    • Preferred development flow

      I'm having trouble finding a nice development flow for my M5Stack Core2 with Micropython.
      The VS code extension is nice, it includes a file manager but not a REPL for debugging while coding. I can't connect via screen as the resource is busy while Visual Studio Code is open.
      Mu works and has a working REPL, but no file manager, so I'd need to manually upload files when needed.

      Ideally, I'd like to work on my local files (versioned with Git) and have the IDE upload those to the device (like Arduino IDE does, but with Micropython).

      What's your usual way of doing things?

      posted in Micropython
      K
      koichirose
    • Getting started with M5Core2

      I just got a Core2 (the AWS one) and I tinkered a little with UIflow.
      While it is nice, I'd like to use Python to code. I installed this: https://marketplace.visualstudio.com/items?itemName=curdeveryday.vscode-m5stack-mpy

      I can't figure out which functions are available and can't find any documentation online.
      For example, how to control the screen, the RGB bars etc. Where can I find a list of available APIs?
      Ctrl-clicking on "m5stack" from VS Code doesn't work. Apart from running some examples I found around, I can't code anything useful since I don't know how to call functions.

      This seems outdated: https://github.com/m5stack/UIFlow-Code/wiki/Display

      Thank you!

      posted in Micropython
      K
      koichirose