uci-i2c-bus/examples/bus.mjs

18 lines
328 B
JavaScript

/*
* 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 = ''
;
(async () => {
let i2cbus = new Bus({id:'i2c-bus'})
await i2cbus.init()
})().catch(err => {
console.error('FATAL: UNABLE TO START SYSTEM!\n',err)
})