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