Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Help a pycom newbie, please.

    Scheduled Pinned Locked Moved WiPy 2&3
    4 Posts 2 Posters 40 Views 2 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.
    • G Offline
      gradighieri
      last edited by gradighieri

      Hi everyone. I am having the exact same problem as described in the post below. I have main.py blinking the rgb led using "run". I added the code as described to boot.py. I can upload them but main.py does not run. Screenshot of Atom below. The only thing I've noticed is that boot.py and main.py are showing as "0kb". Did I not setup the project correctly?

      Re: How do I get main.py to run when the WiPy board boots?

      main py not running.jpg

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        Hi,

        The main.py will automatically run after the boot.py, even without any content in the boot.py. Im not sure about the situation in 2018, but that is not at hand anymore.
        The files are marked as 0kb, as their size is rounded to 0. Im not sure of the content of your main.py file, but it should be running..
        Check the getting started for a working example
        Best, Gijs

        G 1 Reply Last reply Reply Quote 0
        • G Offline
          gradighieri @Gijs
          last edited by

          @Gijs

          Got it working. Something strange about how main.py was saved on my computer. Thanks!

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gijs
            last edited by

            Ah yes, I forgot to mention, always save your project files before uploading, as unsaved changes will Not get uploaded

            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
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom