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

    Pytrack I2C Error when polling button_pressed()

    Scheduled Pinned Locked Moved Expansion Board
    bugspytracki2c bus error
    1 Posts 1 Posters 810 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.
    • R Offline
      rolandvs
      last edited by

      Hi,

      Running a script that effectively is in a polling loop waiting for a button press to start a logging application. The loop reads the button on the Pytrack board constantly. Within the loop the RTC is read once every minute.

      After one or two hours an I2C Bus Error occurs when button_pressed() is called. What could be the cause of this?

      By the way: Is the button_pressed() the result of a debounced input?

      REMARK

      I need to rewire the switch using a switch directly on the GPIO and not via an I2C interface. Using I2C Is is not be very power efficient.

      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