Giter VIP home page Giter VIP logo

Comments (4)

charlesvds avatar charlesvds commented on June 2, 2024 1

I wish I'd found this earlier. I've just spent a long time finding this bug and came up with the exact same solution which works.
I wonder why the library hasn't been fixed yet ?
I'm going to give it a try.

from adafruit_python_gpio.

bobbus77 avatar bobbus77 commented on June 2, 2024

I had the same issue trying to use readList with a sensor. I can confirm that your edits solved my problem.

On a slightly related note, I noticed there is likely another issue related to bulk reads in the tests. Lines 70 & 71 of test_I2C.py read:

    def read_i2c_block_data(self, address, length):
        return [self._read_register(address+i) for i in range(length)] 

It appears as though we're incrementing the address instead of the register, meaning line 71 should be the following instead:

        return [self._read_register(address, register+i) for i in range(length)]

I noticed when I ran the tests that writeList is not being tested, which would explain how this bug got through.

from adafruit_python_gpio.

FunkyFlier avatar FunkyFlier commented on June 2, 2024

To add on to what lifetyper said the idle call is also not needed to correctly generate a repeated start condition.

from adafruit_python_gpio.

ladyada avatar ladyada commented on June 2, 2024

hiya thank you for the issue. we're going to be deprecating this library in favor of our python3 Blinka library which has support for almost 200 different drivers, and a wide variety of linux computers as well as ft232h

If this issue is still occuring when you use Blinka, please re-open it there!

from adafruit_python_gpio.

Related Issues (20)

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.