Files
Plastic-Raspi-5/node_modules/i2c-bus/doc/edison-adruino-base-board-i2c.md

595 B

Configuring I2C on the Intel Edison Arduino Base Board

I2C bus 6 is broken out to the header pins labeled SDA and SCL on the Intel Edison Arduino base board. The edison-i2c-config package can be used to configure this I2C bus:

const i2cConfig = require('edison-i2c-config');

i2cConfig((err) => {
  if (err) {
    console.log('Sorry, something went wrong configuring I2C bus 6 :(');
  } else {
    console.log('Hey!, I2C bus 6 is ready for usage :)');
    console.log('Run "i2cdetect -y -r 6" to list the devices on bus 6');
  }
});