Class: Arduino
- Inherits:
-
Rufirmata::Board
- Object
- Rufirmata::Board
- Arduino
- Defined in:
- lib/rufirmata/arduino.rb
Instance Method Summary collapse
-
#initialize(serial_port_id, options = {}) ⇒ Arduino
constructor
A new instance of Arduino.
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, ={}) super(serial_port_id, .merge(:board_type=>:arduino)) start_listening unless [:auto_start] == false end |