(address, count)
| 381 | this.write(0xF7); // SYSEX END |
| 382 | } |
| 383 | doI2CRead(address, count) { |
| 384 | if (undefined == count) { |
| 385 | return; |
| 386 | } |
| 387 | |
| 388 | this.write(0xF0); // SYSEX BEGIN |
| 389 | this.write(0x76); // I2C_REQUEST |
| 390 | |
| 391 | this.write(address & 0x7F); // low 7 bits of address |
| 392 | this.write(0x08); // read once, stop, 7 bit address |
| 393 | |
| 394 | this.write14Bits(count); |
| 395 | |
| 396 | this.write(0xF7); // SYSEX END |
| 397 | } |
| 398 | doI2CWrite(address, bytes) { |
| 399 | if (!(bytes instanceof ArrayBuffer)) |
| 400 | bytes = bytes.buffer; |
no test coverage detected