Properties
Readonly slaveAddress
slaveAddress: number
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>
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: number[]): Promise<Uint8Array>
Parameters
Returns Promise<Uint8Array>
I2CSlaveDevice クラス