Class: NXT::Connector::Input::Touch
- Inherits:
-
Object
- Object
- NXT::Connector::Input::Touch
- Defined in:
- lib/nxt/connector/input/touch.rb
Overview
Implements the “touch” sensor for the NXT 2.0 module.
Instance Method Summary collapse
-
#initialize(port) ⇒ Touch
constructor
A new instance of Touch.
Constructor Details
#initialize(port) ⇒ Touch
Returns a new instance of Touch.
8 9 10 |
# File 'lib/nxt/connector/input/touch.rb', line 8 def initialize(port) @port = port end |