2018-01-31 18:42:11 -08:00
|
|
|
/*
|
|
|
|
* 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'
|
2018-02-10 12:34:42 -08:00
|
|
|
// const PATH = ''
|
2018-01-31 18:42:11 -08:00
|
|
|
|
2018-02-04 14:19:44 -08:00
|
|
|
;
|
2018-01-31 18:42:11 -08:00
|
|
|
(async () => {
|
|
|
|
|
2018-02-07 10:41:56 -08:00
|
|
|
let i2cbus = new Bus({id:'i2c-bus'})
|
2018-01-31 18:42:11 -08:00
|
|
|
|
|
|
|
await i2cbus.init()
|
|
|
|
|
|
|
|
})().catch(err => {
|
|
|
|
console.error('FATAL: UNABLE TO START SYSTEM!\n',err)
|
|
|
|
})
|