read write tests

master
David Kebler 2017-01-16 16:26:28 -08:00
parent 74ac4c8249
commit cc4270fd83
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}