juhasch / pyBusPirateLite

Python library for BusPirate
https://pybuspiratelite.readthedocs.io/en/latest/
Other
58 stars 33 forks source link

I2C does not have read_byte method what I2Chigh uses #26

Open horror-vacui opened 4 years ago

horror-vacui commented 4 years ago

There is a wrong method call in the I2Chigh class. I2Chigh class not unusable at the moment... :-(

>>> i2c.get_byte(addr_I2Cmux,0)           
Traceback (most recent call last):                                                           
  File "<stdin>", line 1, in <module>                                       
  File "/usr/local/lib/python3.6/dist-packages/pyBusPirateLite/I2Chigh.py", line 53, in get_byte
    r = self.read_byte()
AttributeError: 'I2Chigh' object has no attribute 'read_byte