Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i2c blocking with multiple devices #51

Closed
nigeltiany opened this issue Mar 29, 2017 · 0 comments
Closed

i2c blocking with multiple devices #51

nigeltiany opened this issue Mar 29, 2017 · 0 comments

Comments

@nigeltiany
Copy link

nigeltiany commented Mar 29, 2017

I tried using two i2c devices but i get event errors with this setup.

    devices: {
        pca: { driver: 'pca9685' },
        gyro: { driver: 'mpu6050' }
    },

The error is

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: ENXIO, No such device or address
    at Error (native)

I have to comment out one device for it to work. I wasn't able to pin point the exact point in the code(cylon core or i2c driver) that does the blocking but if anyone can please point it out and i'll work on it. @deadprogram. There might be a callback that gets executed and closes out i2c after the first device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant