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

Method setArea

modules/drivers/it8951/it8951.js:241–250  ·  view source on GitHub ↗
(x, y, w, h)

Source from the content-addressed store, hash-verified

239 }
240
241 setArea(x, y, w, h) {
242 const area = this._setArea;
243
244 area[0] = (this._endian_type << 8) | (this._pix_bpp << 4) | this._rotation;
245 area[1] = x;
246 area[2] = y;
247 area[3] = w;
248 area[4] = h;
249 this.writeArgs(IT8951_TCON_LD_IMG_AREA, area);
250 }
251 writeArgs(command, buffer) {
252 this.writeCommand(command);
253

Callers 2

fillAreaMethod · 0.95
beginMethod · 0.45

Calls 1

writeArgsMethod · 0.95

Tested by

no test coverage detected