fivdi / i2c-bus

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

cannot get clock stretching to work reliably #87

Closed mark-hahn closed 4 years ago

mark-hahn commented 4 years ago

I cannot get clock stretching to work reliably even though I am trying to use the software (bit-bang) driver. The symptoms are the same as when I was using the hardware driver. I will get up to a dozen or so good bytes and then my stretch is ignored.

Can you please check that I am actually using a software driver? My config.txt (without comment lines) looks like this ...

dtparam=audio=on
start_x=1
gpu_mem=128
dtoverlay=i2c-gpio,bus=3,i2c_gpio_sda=2,i2c_gpio_scl=3,i2c_gpio_delay_us=1

My /dev only has i2c-3. My js code is ...

const I2CBUS = 3;
const i2cbus = require('i2c-bus');
const bus = i2cbus.open(I2CBUS, () => {});
mark-hahn commented 4 years ago

I'm closing this for now as I notice the waveform looks a little different now than when I was using hardware.