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

Method getSysInfo

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

Source from the content-addressed store, hash-verified

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));
295 const _tar_memaddr = (info[3] << 16) | info[2];
296 if (_tar_memaddr !== this._tar_memaddr)
297 trace(`unexpected _tar_memaddr value 0x${_tar_memaddr.toString(16)}\n`);
298
299 if ((M5EPD_PANEL_W !== info[0]) || (M5EPD_PANEL_H !== info[1]))
300 trace("unexpected panel dimensions\n");
301 }
302 writeWord(value) {
303 this.waitBusy();
304 this.select.write(0);

Callers 1

constructorMethod · 0.95

Calls 3

writeCommandMethod · 0.95
readWordsMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected