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

    Question from a beginner

    Scheduled Pinned Locked Moved Discussion
    2 Posts 2 Posters 36 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.
    • D Offline
      Daniel Bell
      last edited by

      I have what is likely a simple question that I can't seem to find an answer to in the docs. I have a Pytracker with a Wipy3. I would like to have a signal sent from the board with the battery voltage and the location of the device. Would I create a single project with a main.py file with each of the signals listed in the file, one after the other, or would I create two separate projects on the same board, one for each signal? I was going to try with a single project and then import the code from separate files but I'm bot sure.
      thx

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @Daniel Bell
        last edited by livius

        @Daniel-Bell
        Hi, everything what is working for you is good ;-)
        But all depend on what do you name a project? Are you talking about Pymakr project?
        Normally you should have main.py and to simpler maitaining code, other files supporting different tasks.
        But this is not required. If the project is small, you can all include in the one big main.py file.
        So you decide. As python support classes i use self classes in separate files to take care about one separate task.

        think about people first, then computers

        1 Reply Last reply Reply Quote 1

        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