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

Hang on wire.stream Reading MCP3424 A/D Converter #14

Open
ghost opened this issue Sep 15, 2013 · 1 comment
Open

Hang on wire.stream Reading MCP3424 A/D Converter #14

ghost opened this issue Sep 15, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 15, 2013

Mentioned in above post but thought that I would post as it's own issue. The below code...

    var i2c = require('i2c');       
    var wire = new i2c(0x6A, {device: '/dev/i2c-1', debug: false}); 
    wire.on('data', function(data) {
        console.log(data);
    });
    console.log("wire.stream**************************");
    wire.stream(0x90, 4, 5000); 
    console.log("wire.stream**************************");

...never returns from the wire.stream command. The data event is triggered so things are working in the background. Other events (not shown in this example), such as an incoming socket message, are not handled.

The above test was run on a BeagleBone Black on a clean new O/S installed from the 09-07 Angstrom image.

@rzr
Copy link

rzr commented Oct 20, 2020

Is this issue still relevant on latest @abandonware's fork ?

https://libraries.io/npm/@abandonware%2Fi2c/usage

Relate-to: #97

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