Sha256: 019a6fc26c30ec238921fb8966d798d615b8b40c3cbf602c8de2f48e863fcdb7

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

require 'thor'
require 'mono_matrix'

module MonoMatrix
  class Console < Thor
    desc "example FILE", "an example task"
    method_option :device, :aliases => "-d", :desc => "Set the serial device to use", :default => "/dev/ttyAMA0"
    def switch(output, input)
      m = MonoMatrix::Switcher.new options[:device]
      m.switch output, input
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mono_matrix-1.0.0 lib/mono_matrix/console.rb