MCP3424 class of PicoRuby

Singleton methods

new

MCP3424.new(i2c: I2C, address_selector: Integer) -> instance

Instance methods

assert_channel

instance.assert_channel(Integer channel) -> void

bit_resolution

instance.bit_resolution() -> Integer

bit_resolution=

instance.bit_resolution=(Integer bit_resolution) -> Integer

one_shot_read

instance.one_shot_read(Integer channel, ?(Integer|nil) timeout_ms) -> (Integer|nil)

pga_gain

instance.pga_gain() -> Integer

pga_gain=

instance.pga_gain=(Integer pga_gain) -> Integer

read

instance.read(?(Integer|nil) timeout_ms) -> (Integer|nil)

set_address

instance.set_address(Integer address_selector) -> void

start_continuous_conversion

instance.start_continuous_conversion(Integer channel) -> void

Attr accessors

address (reader)

instance.address -> Integer
Tags: class