@chirimen/tca9548a
v1.0.6
Published
Driver for TCA9548A with WebI2C
Downloads
11
Keywords
Readme
@chirimen/tca9548a
Driver for TCA9548A with WebI2C
API
TCA9548A
▸ TCA9548A(bus
: I2CPort, address
: TCA9548AAddress): object
Defined in packages/tca9548a/src/index.ts:34
Parameters:
Name | Type | Default |
------ | ------ | ------ |
bus
| I2CPort | - |
address
| TCA9548AAddress | 112 |
Returns: object
i2cSlave: null | I2CSlaveDevice = null as I2CSlaveDevice | null
init(): Promise‹void›
read(): Promise‹TCA9548AChannel | null›
write(
channel
: TCA9548AChannel): Promise‹void›
Const
TCA9548AChannels
• TCA9548AChannels: ReadonlyArray‹TCA9548AChannel› = [ 0, 1, 2, 3, 4, 5, 6, 7 ]
Defined in packages/tca9548a/src/index.ts:17
TCA9548AAddress
Ƭ TCA9548AAddress: 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119
Defined in packages/tca9548a/src/index.ts:4
I2C bus slave address (default 0x70
; when A0-A2 pins are high(1)/low(0) 0x70+4*A2+2*A1+A0
)
TCA9548AChannel
Ƭ TCA9548AChannel: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
Defined in packages/tca9548a/src/index.ts:15
8 switch channels for I2C data flow
License
MIT