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

Method doPocoClip

modules/io/firmata/firmataclient.js:437–448  ·  view source on GitHub ↗
(x, y, width, height)

Source from the content-addressed store, hash-verified

435 this.write(0xF7); // SYSEX END
436 }
437 doPocoClip(x, y, width, height) {
438 this.write(0xF0); // SYSEX BEGIN
439 this.write(0x01); // POCO_COMMAND (user command)
440 this.write(0x04); // POCO clip
441 if (undefined !== x) {
442 this.write14Bits(x);
443 this.write14Bits(y);
444 this.write14Bits(width);
445 this.write14Bits(height);
446 }
447 this.write(0xF7); // SYSEX END
448 }
449 doPocoOrigin(x, y) {
450 this.write(0xF0); // SYSEX BEGIN
451 this.write(0x01); // POCO_COMMAND (user command)

Callers 1

clipMethod · 0.80

Calls 2

writeMethod · 0.95
write14BitsMethod · 0.95

Tested by

no test coverage detected