Code Monkey home page Code Monkey logo

Comments (2)

abelectronicsuk avatar abelectronicsuk commented on July 21, 2024

Hello Jardi

According to the datasheet for the MCP23017 on page 7 there are several minimum time delays for the data inputs and stop conditions that are needed for the chip to function correctly.

I expect what is happening is where the Thinkpad is running much faster than a Raspberry Pi it is not leaving a long enough delay after the I2C stop condition before sending the next packet.

You could try increasing the I2C bus speed to see if that fixes the problem. On the Raspberry Pi the IO Pi Plus can run up to 1MHz but depending on the capacitance of your Thinkpad's I2C bus you may find that you can not run that fast.

If increasing the bus speed does not work then adding the time.sleep() after each bus write is probably the only option to make it work.

from abelectronics_python_libraries.

jardiamj avatar jardiamj commented on July 21, 2024

Thanks for the reply! I figured that was the case.
Also, if you don't mind I'm planning on taking your module, add support for mcp23008 chip and upload it to PyPI with a more generic name.
I don't see any explicit licensing anywhere, so I thought I would ask here if that's ok.
Jardi.

Edit: Never mind, I just found the LICENSE file at the root of the python libraries project.

from abelectronics_python_libraries.

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.