Module: MatrixCreator::Uv
- Defined in:
- lib/matrix_creator/uv.rb
Overview
Module: UV
Communicate with the UV driver
Constant Summary collapse
- UV_CONFIG =
Configuration values for the UV driver
MatrixCreator.settings[:devices][:uv]
- BASE_PORT =
Base port to send data to UV driver
UV_CONFIG[:port]
Class Method Summary collapse
-
.detect(options = {}, &block) ⇒ Array
Detects and returns information from the UV driver.
-
.detect_once ⇒ Hash
Detects one response from the UV driver and returns its value.
Class Method Details
.detect(options = {}, &block) ⇒ Array
Detects and returns information from the UV driver
35 36 37 |
# File 'lib/matrix_creator/uv.rb', line 35 def self.detect( = {}, &block) MatrixCreator::DriverBase.detect(BASE_PORT, MatrixMalos::UV, , block) end |
.detect_once ⇒ Hash
Detects one response from the UV driver and returns its value
44 45 46 |
# File 'lib/matrix_creator/uv.rb', line 44 def self.detect_once detect(max_resp: 1).first end |