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

    Button on pytrack/pysense

    Scheduled Pinned Locked Moved Expansion Board
    pysensepytracksche
    3 Posts 2 Posters 1.9k 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.
    • R Offline
      rolandvs
      last edited by

      What is the rationale to use:

         # from the pytrack software
         def button_pressed(self):
            button = self.peek_memory(PORTA_ADDR) & (1 << 3)
            return not button
      

      instead of reading the button P14 via a machine.Pin('P14').value() which seems a lot simpler, not to say doesn't use the I2C bus for peeking...

      E 1 Reply Last reply Reply Quote 0
      • E Offline
        Emmanuel Goudot @rolandvs
        last edited by

        According to this I understand that button is connected to

        • lopy/sipy P14
          and
        • PIC (on pytrack/pysense) PA3 of PORT A
          When will we get schematics of pytrack/pysense instead of working on a blackbox ???
        1 Reply Last reply Reply Quote 1
        • R Offline
          rolandvs
          last edited by

          @Emmanuel-Goudot I sincerely hope Pycom will release the schematics.

          I have asked them a few times now and no response. IMHO This will do more harm than good for Pycom. It is not rocket science and it is crazy I see so many posts on people trying to reverse engineer the board(s) and even patch the firmware of the PIC by hand? The documentation is not complete or different depending on what file you read. To much time is already spend on finding out all the connections and how it works and even then it is not sure if it is correct or what side effects are possible. PYCOM: let us help you, there is a big community of enthusiastic users that can help you forward.

          I just finished comparing pysense/track/lopy wiring diagrams to find out which pins can be used.

          1 Reply Last reply Reply Quote 2

          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