Coder Social home page Coder Social logo

Comments (3)

rgillan avatar rgillan commented on August 21, 2024 1

Thanks for getting back so promptly. So we've worked out the 52/53 thing is actually a documentation anomaly. It's actually write/read to 0x29 including the r/w bit (silly way to identify the address in my opinion). Anyway, thanks for this great module and we'll make do with the plain i2c methods. Cheers

from i2c-bus.

rgillan avatar rgillan commented on August 21, 2024

although we have been able to do some basic comms with i2cWriteSync and i2cReadSync, so probably more for convenience than anything I expect.

from i2c-bus.

fivdi avatar fivdi commented on August 21, 2024

The plain I2C methods described in the readme can be used to achieve what's needed here.

For example, for the read shown in Figure 12, call i2cWrite or i2cWriteSync to write to address 0x52 followed by a call to i2cRead or i2cReadSync to read from address 0x53.

For the write shown in Figure 11, call i2cWrite or i2cWriteSync to write to address 0x52.

If needed, your application can implement higher level methods suitable for accessing the VL53L3X which leverage the functionality provided by the plain I2C methods that i2c-bus offers.

I won't be adding methods to cover this use case to i2c-bus. The read shown in Figure 12 that first writes to address 0x52 and then reads from address 0x53 isn't very conventional.

from i2c-bus.

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.