ftdi_i2c_transfer
Read and write I2C slave registers through an FTDI bridge to configure and inspect sensors and peripherals.
Instructions
Read and/or write registers on an I2C slave device via an FT232H/FTDI bridge.
Args: address: 7-bit I2C slave address (e.g., 0x68 for MPU6050, 0x3C for SSD1306 OLED, 0x76 for BME280). ftdi_url: PyFtdi device URL (default 'ftdi:///1'). register_addr: Optional 8-bit register address to read from or write to. write_hex: Optional hex bytes string to write (e.g., '01 FF'). read_length: Number of bytes to read back (0 for write-only). frequency_hz: I2C clock speed in Hz (default 100000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| ftdi_url | No | ftdi:///1 | |
| write_hex | No | ||
| read_length | No | ||
| frequency_hz | No | ||
| register_addr | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||