18 lines
396 B
JavaScript
18 lines
396 B
JavaScript
/*
|
|
* i2c bus with both unix and tcp socket using defaults. For TCP that is host OS name and port 8080
|
|
*
|
|
*/
|
|
import MCP230XX from '../src/mcp230xx-packet'
|
|
// const PATH = ''
|
|
|
|
;
|
|
(async () => {
|
|
|
|
let mcp_chip = new MCP230XX({id:'mcp23008-27', chip17:true, address:0x26, bus:{host:'sbc'} })
|
|
|
|
await mcp_chip.init()
|
|
|
|
})().catch(err => {
|
|
console.error('FATAL: UNABLE TO START SYSTEM!\n',err)
|
|
})
|