🤖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

    M5 Stick/StickC
    2
    4
    6.5k
    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
      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
        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
          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
            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
            • First post
              Last post