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

Method doSendString

modules/io/firmata/firmataserver.js:532–537  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

530 this.onDigitalChanged(port);
531 }
532 doSendString(msg) {
533 this.write(0xF0); // sysex begin
534 this.write(0x71); // STRING_DATA
535 this.writeString(msg);
536 this.write(0xF7); // sysex end
537 }
538 onDigitalChanged(port) {
539 const value = (port.inBank.read() >> port.shift) & 0xFF;
540 this.write(0x90 | (port.shift >> 3)); // DIGITAL_MESSAGE | port number

Callers 1

onSysexMethod · 0.95

Calls 2

writeMethod · 0.95
writeStringMethod · 0.95

Tested by

no test coverage detected