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

    Deployment of a Python app on the M5Stick-C from VS code

    Scheduled Pinned Locked Moved M5 Stick/StickC
    4 Posts 2 Posters 7.9k Views 1 Watching
    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.
    • antowanA Offline
      antowan
      last edited by

      Hi,

      I am using Visual Studio code to write directly my code on the M5Stick-C.
      I can reset and push the code for testing but how to make it persistent.
      I wish I could achieve something similar to the download function available in the UIFlow designer.
      If there is a way to do it in command line it is also welcome.

      I am using the 1.4.0beta firmware.

      Thank you by advance.
      Antowan

      1 Reply Last reply Reply Quote 0
      • lukasmaximusL Offline
        lukasmaximus
        last edited by

        Hi @antowan to achieve the same effect as the download function in vscode connect your m5stack to vscode with the m5stack plugin and simply click on the apps folder and press the + button to create a new file in that directory, name the file e.g. "filenamehere.py" copy and paste your code into that file and then save when your done. Now when you reset the M5Stick and go into the app.list you can select your program from the list.

        1 Reply Last reply Reply Quote 0
        • antowanA Offline
          antowan
          last edited by

          @lukasmaximus thank you, it does the job!

          Is there a way to upload multiple files at once ? I have folder with multiple images that I upload in the res/ folder but I have to upload manually each image.
          Ideally I wish I could have an option to upload all my project at once (.py and resource files).
          If there is any way to do that especially in vs code that would be a great gain of time.

          Thank you,
          Antowan

          1 Reply Last reply Reply Quote 0
          • lukasmaximusL Offline
            lukasmaximus
            last edited by

            As far as I am aware that feature is unavailable right now in vs code or any other software for now sorry. I can only suggest you put all your files on an sd card and reference them in your python script

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post