Giter Club home page Giter Club logo

Comments (5)

stevemarple avatar stevemarple commented on July 18, 2024 1

I was encountering a similar problem with 2.0.7 getting the WHO_AM_I register from an NXP FXOS8700 sensor, and after applying this patch my problem has been fixed. Thanks for fixing this.

Thanks for reporting - I'll close this issue now I have confirmation it is fixed.

from softwire.

stevemarple avatar stevemarple commented on July 18, 2024

That looks like a bug as the repeated start condition is not sent. I need to find some time to look into this in more detail and remind myself of what is supposed to happen.

Can you please post a code snippet showing how you call the SoftWire constructor and setup the RX and TX buffers?

Nice logic traces - what did you use to capture them?

from softwire.

hideakitai avatar hideakitai commented on July 18, 2024

Thank you for the reply. I'm using the following setups.

// in the global scope
SoftWire sw(SDA, SCL);
char swTxBuffer[64];
char swRxBuffer[64];

// in the setup()
sw.setTxBuffer(swTxBuffer, sizeof(swTxBuffer));
sw.setRxBuffer(swRxBuffer, sizeof(swRxBuffer));
sw.setDelay_us(5);
sw.begin();

The entire code is here, and you can reproduce the problem by activating this line instead of the next one.

I'm using Logic Pro 16. It's a super easy and useful one :)

from softwire.

stevemarple avatar stevemarple commented on July 18, 2024

I finally found the time to investigate this properly. I believe it is fixed in v2.0.8. I wasn't able to test with the same I2C device as you, so I used a Microchip MCP79410 real-time clock. This is the logic analyzer trace obtained by writing to and then reading from that device.
I2C traces

from softwire.

waynepiekarski avatar waynepiekarski commented on July 18, 2024

I was encountering a similar problem with 2.0.7 getting the WHO_AM_I register from an NXP FXOS8700 sensor, and after applying this patch my problem has been fixed. Thanks for fixing this.

from softwire.

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.