Open NicolasLeRoux opened 6 years ago
Tutorial here
See:
const os = require('os') if (os.arch() == 'arm') { // Raspberry Pi i2c = require('i2c-bus'); } else { console.warn('Not using I2C'); i2c = require('./i2c.mock.js'); }
Tutorial here