MCP3x0x class of PicoRuby

Singleton methods

new

MCP3x0x.new(
    unit: Symbol,
    ?frequency: Integer,
    ?sck_pin: Integer,
    ?cipo_pin: Integer,
    ?copi_pin: Integer,
    ?cs_pin: Integer
  ) -> instance

Instance methods

read

instance.read(Integer channel, ?differential: bool) -> Integer
Tags: class