GithubHelp home page GithubHelp logo

Comments (7)

audiohacked avatar audiohacked commented on June 13, 2024

Could you provide BP response output?

from python-pybuspirate.

PRWald avatar PRWald commented on June 13, 2024

There is no output, unless I'm missing a debug mode. The part of my Python script that fails is here:

try:
    i2c = I2C('/dev/bus_pirate', 115200)
except Exception as e:
    print( "ERROR: ", e)
    sys.exit()

if not i2c.BBmode():
    print( "ERROR: Failed to enter bit-bang mode.")
    sys.exit()

The call to BBmode() returns zero and I get the message "ERROR: Failed to enter bit-bang mode."

from python-pybuspirate.

audiohacked avatar audiohacked commented on June 13, 2024

Unable to duplicate problem due to insufficient information.

from python-pybuspirate.

PRWald avatar PRWald commented on June 13, 2024

If you look at the source code I think you will see the problem. The definition of BBmode() has a loop that is supposed to cycle up to 20 times, but the last two lines of the loop are an if-else where each branch has a return. There is no way for the loop to continue past the first try.

from python-pybuspirate.

audiohacked avatar audiohacked commented on June 13, 2024

should work

On Fri, May 31, 2013 at 3:56 PM, PRWald [email protected] wrote:

If you look at the source code I think you will see the problem. The
definition of BBmode() has a loop that is supposed to cycle up to 20 times,
but the last two lines of the loop are an if-else where each branch has a
return. There is no way for the loop to continue past the first try.


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-18773781
.

from python-pybuspirate.

audiohacked avatar audiohacked commented on June 13, 2024

You SHOULD have forked it and sent a pull instead of expecting me figure out what you were talking about and try to fix it; I have a full time job in the Military and don't have anytime to really write code.

from python-pybuspirate.

audiohacked avatar audiohacked commented on June 13, 2024

Sorry...I just got off work; it was a very busy day!

from python-pybuspirate.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.