(command, buffer)
| 249 | this.writeArgs(IT8951_TCON_LD_IMG_AREA, area); |
| 250 | } |
| 251 | writeArgs(command, buffer) { |
| 252 | this.writeCommand(command); |
| 253 | |
| 254 | this.waitBusy(); |
| 255 | this.select.write(0); |
| 256 | this.spi.write16(0x0000); |
| 257 | this.waitBusy(); |
| 258 | |
| 259 | for (let i = 0, length = buffer.length; i < length; i++) { |
| 260 | this.spi.write16(buffer[i]); |
| 261 | this.waitBusy(); |
| 262 | } |
| 263 | this.select.write(1); |
| 264 | } |
| 265 | writeCommand(command) { |
| 266 | this.waitBusy(); |
| 267 | this.select.write(0); |
no test coverage detected