Class: Dino::TxRx::Serial
Constant Summary collapse
- BAUD =
115200
Instance Method Summary collapse
- #handshake ⇒ Object
-
#initialize(options = {}) ⇒ Serial
constructor
A new instance of Serial.
- #io ⇒ Object
Methods inherited from Base
#close_read, #flush_read, #gets, #read, #write
Constructor Details
Instance Method Details
#handshake ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/dino/tx_rx/serial.rb', line 18 def handshake if on_windows? io; sleep 3 end super end |
#io ⇒ Object
14 15 16 |
# File 'lib/dino/tx_rx/serial.rb', line 14 def io @io ||= connect end |