CircuitsSim.Device.MCP23008 (circuits_sim v0.1.2)
View SourceMCP23008 8-bit I/O Expander
This is a simple I2C GPIO Expander that's normally found at I2C addresses between 0x20 and 0x27.
See the datasheet for details. Many features aren't implemented.
Summary
Types
Functions
@spec child_spec(keyword()) :: Supervisor.child_spec()
@spec new() :: %CircuitsSim.Device.MCP23008{
defval: 0,
gpinten: 0,
gpio: 0,
gppu: 0,
intcap: 0,
intcon: 0,
intf: 0,
iocon: 0,
iodir: 255,
ipol: 0,
olat: 0
}