Class: OpenLighting::Devices::ComscanLed
- Inherits:
-
OpenLighting::DmxDevice
- Object
- OpenLighting::DmxDevice
- OpenLighting::Devices::ComscanLed
- Defined in:
- lib/open_lighting/devices/comscan_led.rb
Overview
ComscanLed is an example subclass of DmxDevice which supplies sensible defaults
Instance Attribute Summary
Attributes inherited from OpenLighting::DmxDevice
#capabilities, #controller, #current_values, #defaults, #points, #start_address
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ComscanLed
constructor
A new instance of ComscanLed.
Methods inherited from OpenLighting::DmxDevice
#buffer, #method_missing, #point, #set, #to_dmx
Constructor Details
#initialize(options = {}) ⇒ ComscanLed
Returns a new instance of ComscanLed.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/open_lighting/devices/comscan_led.rb', line 7 def initialize( = {}) [:points] ||= {} [:points][:center] ||= {:pan => 127, :tilt => 127} [:points][:origin] ||= {:pan => 127, :tilt => 127, :strobe => 8, :gobo => 0, :dimmer => 0} [:points][:strobe_blackout] ||= {:strobe => 0} [:points][:strobe_open] ||= {:strobe => 8} [:points][:strobe_slow] ||= {:strobe => 16} [:points][:strobe_fast] ||= {:strobe => 131} [:points][:strobe_slow_fast] ||= {:strobe => 140} [:points][:strobe_fast_slow] ||= {:strobe => 190} [:points][:strobe_random] ||= {:strobe => 247} [:points][:nocolor] ||= {:gobo => 0} [:points][:white] ||= {:gobo => 0} [:points][:yellow] ||= {:gobo => 8} [:points][:red] ||= {:gobo => 15} [:points][:green] ||= {:gobo => 22} [:points][:blue] ||= {:gobo => 29} [:points][:teardrop] ||= {:gobo => 36} [:points][:polka] ||= {:gobo => 43} [:points][:teal] ||= {:gobo => 50} [:points][:rings] ||= {:gobo => 57} [:points][:on] ||= {:dimmer => 255} [:points][:off] ||= {:dimmer => 0} [:capabilities] ||= [:pan, :tilt, :strobe, :gobo, :dimmer] [:defaults] ||= {:pan => 127, :tilt => 127, :strobe => 8, :gobo => 0, :dimmer => 0} super() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OpenLighting::DmxDevice