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

Function doCmd

examples/io/spi/ili9341/main.js:96–105  ·  view source on GitHub ↗
(register, ...data)

Source from the content-addressed store, hash-verified

94}
95
96function doCmd(register, ...data) {
97 spi.flush(true);
98 dc.write(0);
99 spi.write(Uint8Array.of(register));
100
101 if (data.length) {
102 dc.write(1);
103 spi.write(Uint8Array.from(data));
104 }
105}

Callers 2

main.jsFile · 0.70
fillFunction · 0.70

Calls 3

writeMethod · 0.65
flushMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected