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

Method doPocoBegin

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

Source from the content-addressed store, hash-verified

419 return this.messageWait(0x01); // POCO_COMMAND
420 }
421 doPocoBegin(x, y, width, height) {
422 this.write(0xF0); // SYSEX BEGIN
423 this.write(0x01); // POCO_COMMAND (user command)
424 this.write(0x02); // POCO begin
425 this.write14Bits(x);
426 this.write14Bits(y);
427 this.write14Bits(width);
428 this.write14Bits(height);
429 this.write(0xF7); // SYSEX END
430 }
431 doPocoEnd() {
432 this.write(0xF0); // SYSEX BEGIN
433 this.write(0x01); // POCO_COMMAND (user command)

Callers 1

beginMethod · 0.80

Calls 2

writeMethod · 0.95
write14BitsMethod · 0.95

Tested by

no test coverage detected