Class: Arduino

Inherits:
Rufirmata::Board
  • Object
show all
Defined in:
lib/rufirmata/arduino.rb

Instance Method Summary collapse

Constructor Details

#initialize(serial_port_id, options = {}) ⇒ Arduino

Returns a new instance of Arduino.



2
3
4
5
# File 'lib/rufirmata/arduino.rb', line 2

def initialize(serial_port_id, options={})
  super(serial_port_id, options.merge(:board_type=>:arduino))
  start_listening unless options[:auto_start] == false
end