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

Method writeUint8

modules/io/i2c/smbus.js:62–68  ·  view source on GitHub ↗
(register, byte)

Source from the content-addressed store, hash-verified

60 }
61
62 writeUint8(register, byte) {
63 const io = this.#io, buffer = this.#wordBuffer;
64
65 buffer[0] = register;
66 buffer[1] = byte;
67 io.write(buffer);
68 }
69
70 writeUint16(register, word, bigEndian) {
71 const io = this.#io, buffer = this.#writeWordBuffer;

Callers 15

writeByteMethod · 0.95
constructorMethod · 0.45
configureMethod · 0.45
constructorMethod · 0.45
closeMethod · 0.45
configureMethod · 0.45
configureMethod · 0.45
constructorMethod · 0.45
#writeUint8_syncMethod · 0.45
configureMethod · 0.45
sampleMethod · 0.45
constructorMethod · 0.45

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected