Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BitBang.py bug/typo on line 125/126 #68

Open
GoogleCodeExporter opened this issue Apr 10, 2016 · 2 comments
Open

BitBang.py bug/typo on line 125/126 #68

GoogleCodeExporter opened this issue Apr 10, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

ghost commented Apr 10, 2016

What steps will reproduce the problem?

       def raw_set_pins(self, pins):
           self.port.write(chr(0x80 | config))


What is the expected output? What do you see instead?

  File "/usr/local/lib/python2.7/dist-packages/pyBusPirateLite/BitBang.py", line 126, in raw_set_pins
    self.port.write(chr(0x80 | config))
NameError: global name 'config' is not defined

Please provide any additional information below.

Either change config to pins on line 126 or pins to config on line 125







Original issue reported on code.google.com by [email protected] on 21 Feb 2012 at 3:12

@GoogleCodeExporter
Copy link
Author

ghost commented Apr 10, 2016

I have successfully read the frequency of a RH10D humidity sensor.

hacky code below which discovered this buggette.

       i2c.BBmode()
        print "Requesting Freq check"
        i2c.raw_cfg_pins(PinCfg.AUX);
        i2c.raw_set_pins(BBIOPins.AUX | BBIOPins.PULLUP | BBIOPins.POWER);
        i2c.port.write("\x16")
        i2c.timeout(2)

        raw_data = i2c.response(4, True)

Original comment by [email protected] on 21 Feb 2012 at 3:14

@GoogleCodeExporter
Copy link
Author

ghost commented Apr 10, 2016

This is a duplicate of issue 47

Original comment by [email protected] on 26 Feb 2013 at 1:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
and others