remove queue wrap of bus r/w

master
David Kebler 2017-01-15 18:47:43 -08:00
parent 635d7fc35e
commit f724ef775e
1 changed files with 7 additions and 2 deletions

View File

@ -13,9 +13,12 @@ class MCP23008 extends Device {
this.ports = {}
opts.portID = 'A'
this.ports.A = new Port(opts)
console.log(this.ports.A)
// if not specified there RPi is not managing the interrupt
// pin number on RPi that is connected to and services the interrupt. 4/17/27/22 = 7/11/13/15
this.ports.A.interPin = opts.interPin.A ? opts.interPin.A : opts.interPin
if (opts.interPin) {
this.ports.A.interPin = opts.interPin.A ? opts.interPin.A : opts.interPin
}
} // end constructor
init() {
@ -132,7 +135,9 @@ class MCP23017 extends MCP23008 {
// add a second port
opts.portID = 'B'
this.ports.B = new Port(opts)
this.ports.B.interPin = opts.interPin.B ? opts.interPin.B : opts.interPin
if (opts.interPin) {
this.ports.B.interPin = opts.interPin.B ? opts.interPin.B : opts.interPin
}
}
pin(id, port) {