/* * i2c bus with both unix and tcp socket using defaults. For TCP that is host OS name and port 8080 * */ import Bus from '../src/bus-packet' const PATH = '/opt/uci/unix.sock' ; (async () => { let i2cbus = new Bus({id:'i2c-bus', us:{path:PATH} }) await i2cbus.init() })().catch(err => { console.error('FATAL: UNABLE TO START SYSTEM!\n',err) })