CircuitsSim.Device.ADS7138 (circuits_sim v0.1.2)
View SourceMCP23008 8-bit I/O Expander
Small, 8-Channel, 12-Bit ADC with I2C interface, GPIOs, and CRC. Supports addresses 0x10 to 0x17
See the datasheet for details. Many features aren't implemented.
Summary
Types
@type t() :: %CircuitsSim.Device.ADS7138{current: non_neg_integer(), registers: map()}
Functions
@spec child_spec(keyword()) :: Supervisor.child_spec()
@spec new() :: %CircuitsSim.Device.ADS7138{current: 0, registers: %{}}