Comments (7)
Could you provide BP response output?
from python-pybuspirate.
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.
Unable to duplicate problem due to insufficient information.
from python-pybuspirate.
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.
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.
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.
Sorry...I just got off work; it was a very busy day!
from python-pybuspirate.
Related Issues (12)
- Patch needed to work on my system HOT 3
- Does not work on Windows7 python 2.7.10 HOT 5
- Doesn't work on Windows 7+ with python 3.5 HOT 1
- __init__() got multiple values for argument 'self' HOT 1
- Add package to PyPI
- pyBusPirate vs pyBusPirateLite HOT 3
- Dependencies for pyBusPirateLite
- DOS EoL Characters
- no setup.py file
- Block indention mismatch in BinaryMode/I2C.py
- Python3 compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-pybuspirate.