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

Method end

modules/drivers/it8951/it8951.js:430–443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

428 buffer.position = position;
429 }
430 end() {
431 const epd = this.#epd;
432
433 if (this.#buffer.position)
434 epd.spi.write(new Uint8Array(this.#buffer, 0, this.#buffer.position));
435
436 epd.select.write(1);
437 epd.writeCommand(IT8951_TCON_LD_IMG_END);
438
439 const area = this.#area;
440 epd.updateArea(area.x, area.y, area.width, area.height, this.#updateMode);
441
442 delete area.continue;
443 }
444 continue() {
445 const epd = this.#epd;
446

Callers

nothing calls this directly

Calls 3

writeCommandMethod · 0.80
updateAreaMethod · 0.80
writeMethod · 0.65

Tested by

no test coverage detected