Class: FB::DefaultSerialPort
- Inherits:
-
SerialPort
- Object
- SerialPort
- FB::DefaultSerialPort
- 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
-
.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().