Class: FB::DefaultSerialPort

Inherits:
SerialPort
  • Object
show all
Defined in:
lib/default_serial_port.rb

Constant Summary collapse

COM_PORT =
'/dev/ttyACM0'
OPTIONS =
{ "baud"         => 115200,
"data_bits"    => 8,
"stop_bits"    => 1,
"parity"       => SerialPort::NONE,
"flow_control" => SerialPort::SOFT }

Class Method Summary collapse

Class Method Details

.new(com = COM_PORT, conf = OPTIONS) ⇒ Object

Why ‘def self::new()`? it was defined that way in the parent class, therefore, I can’t call super in #initialize(). :nocov:



19
20
21
# File 'lib/default_serial_port.rb', line 19

def self::new(com = COM_PORT, conf = OPTIONS)
  super
end