Properties
slaveAddress
Methods
read16
- read16(registerNumber: number): Promise<number>
-
Parameters
Returns Promise<number>
read8
- read8(registerNumber: number): Promise<number>
-
Parameters
Returns Promise<number>
readByte
- readByte(): Promise<number>
-
Returns Promise<number>
readBytes
- readBytes(length: number): Promise<Uint8Array>
-
Parameters
Returns Promise<Uint8Array>
write16
- write16(registerNumber: number, value: number): Promise<number>
-
Parameters
-
registerNumber: number
-
value: number
Returns Promise<number>
write8
- write8(registerNumber: number, value: number): Promise<number>
-
Parameters
-
registerNumber: number
-
value: number
Returns Promise<number>
writeByte
- writeByte(byte: number): Promise<number>
-
Parameters
Returns Promise<number>
writeBytes
- writeBytes(bytes: Array<number>): Promise<Uint8Array>
-
Parameters
Returns Promise<Uint8Array>
Different from Web I2C API specification.