read write tests
parent
74ac4c8249
commit
cc4270fd83
|
@ -34,10 +34,12 @@ class Bus {
|
|||
}
|
||||
|
||||
read(address, cmd) {
|
||||
// console.log("read: address, cmd", address, cmd)
|
||||
return pify(this.bus.readByte).bind(this.bus)(address, cmd)
|
||||
}
|
||||
|
||||
write(address, cmd, byte) {
|
||||
// console.log("write: address, cmd, byte", address, cmd, byte)
|
||||
return pify(this.bus.writeByte.bind(this.bus))(address, cmd, byte)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue