Navigation

    M5Stack Community

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

    Posts made by marf

    • RE: Uploading and running micropython code...?

      Thank you! This helped! At the very least, I've got Ampy up and running and can toss some files onto the device. I've got the M5Stack Faces kit, and I'm using the factory firmware (rather than UIFlow). Now I'm working on getting the M5Stack libraries working... I found the githubs located here: http://community.m5stack.com/topic/724/micropython-firmware-with-m5stack-libraries
      and managed to move over m5stack.py and input.py, but now m5stack.py is grumpy because it can't find the "display" module. Any pointers on where to go from here?

      Alternatively, I suppose the UIFlow firmware probably has these libraries already... or it's using a different M5Stack.py maybe? Even in USB mode, I can't seem to access the REPL with the UIFlow firmware.

      Thanks again, and sorry for leaning on the forums hard for this... it just feels like there ought to be a better way to get this to get this running a python file without the extra UIFlow interference. (I'm sure it's great for starting out, but I was hoping to use this more for prototyping, etc.)

      posted in Micropython
      M
      marf
    • Uploading and running micropython code...?

      Can anyone explain simply how to run a micropython script on the M5Stack? I'm currently on a windows computer. This feels like it should be a very easy question, but I've had no luck. What I would like to do is:

      • Create and edit a main.py file in a text editor, like Sublime
      • Put that on the M5Stack along with any resources (i.e. any supporting .py files, images, etc)

      Preferably, I'd like to do that over USB.

      I've seen other boards that just show up as a removable USB drive, and you can drag-and-drop files directly into it. I was hoping the M5Stack would be similar, but unless I'm missing something, that isn't the case.

      I can get desktop UIFlow to work, but I'd rather not copy-paste code all the time, and it's unclear to me how to add additional files (for example, another .py file with classes that main.py imports, or images, etc.).

      I'm sorry if I'm totally missing something obvious, but after many hours of looking, I'm about out of ideas.

      posted in Micropython
      M
      marf