# RegisterDevice

## class RegisterDevice( name: str, address: int, addr_width_bytes: int = 1, registers: dict[str, ~instro.i2c.types.RegisterDef]=<factory>, )[source]

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object "(in Python v3.15)")

Register-based I2C device (e.g. a GPIO expander). Read/write by register alias.

### name: str

### address: int

### addr_width_bytes: int = 1

### registers: dict[str, RegisterDef]

### register( register_alias: str, ) → RegisterDef[source]
