(register, value)
| 278 | this.writeRegister(IT8951_LISAR, l); |
| 279 | } |
| 280 | writeRegister(register, value) { |
| 281 | this.writeCommand(IT8951_TCON_REG_WR); |
| 282 | |
| 283 | this.waitBusy(); |
| 284 | this.select.write(0); |
| 285 | this.spi.write16(0x0000); |
| 286 | this.waitBusy(); |
| 287 | this.spi.write16(register); |
| 288 | this.waitBusy(); |
| 289 | this.spi.write16(value); |
| 290 | this.select.write(1); |
| 291 | } |
| 292 | getSysInfo() { |
| 293 | this.writeCommand(IT8951_I80_CMD_GET_DEV_INFO); |
| 294 | const info = this.readWords(new Array(20)); |
no test coverage detected