fivdi / i2c-bus

I2C serial bus access with Node.js
MIT License
348 stars 57 forks source link

cannot detect i2c device of shtc3 #110

Closed TaylorIsAGoodboy closed 2 years ago

TaylorIsAGoodboy commented 2 years ago

I use i2cdected -y 1 in RPi, it shows: image but when i used script written with the interface of i2c-bus.js, it return: image No 0x70 device.

my script is

const i2c = require('i2c-bus');
let _wire = i2c.openSync(1);
_wire.scan(0x08, 0x7f, function(err, address){
    if(err == null){
        console.log(address);
    }
});