MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / writeArgs

Method writeArgs

modules/drivers/it8951/it8951.js:251–264  ·  view source on GitHub ↗
(command, buffer)

Source from the content-addressed store, hash-verified

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);

Callers 2

updateAreaMethod · 0.95
setAreaMethod · 0.95

Calls 4

writeCommandMethod · 0.95
waitBusyMethod · 0.95
write16Method · 0.80
writeMethod · 0.65

Tested by

no test coverage detected