I2C class of PicoRuby
Type aliases
outputs_t
Integer|String|Array[Integer]
Singleton methods
new
I2C.new(
unit: Symbol|nil,
?frequency: Integer,
?sda_pin: Integer,
?scl_pin: Integer
) -> instance
Instance methods
outputs_array
instance.outputs_array(
Array[outputs_t] outputs
) -> Array[Integer]
read
instance.read(
Integer i2c_adrs_7,
Integer len,
*outputs_t outputs
) -> String
scan
instance.scan() -> nil
write
instance.write(
Integer i2c_adrs_7,
*outputs_t outputs
) -> Integer