Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
96
function
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.js
File · 0.70
fill
Function · 0.70
Calls
3
write
Method · 0.65
flush
Method · 0.45
from
Method · 0.45
Tested by
no test coverage detected