Class: LampPhase
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #arduino_code ⇒ Object
-
#initialize(params) ⇒ LampPhase
constructor
A new instance of LampPhase.
- #top_level_scope_code ⇒ Object
Methods inherited from Base
#add_arduino_code, #add_cycle_level_scope, #add_top_level_scope, #append_tsortable, #buildit, #cycle_level_arduino_code, #depends_on, #param_keys, #resolve_frame_optimized, #top_level_scope_arduino_code
Constructor Details
#initialize(params) ⇒ LampPhase
Returns a new instance of LampPhase.
4 5 6 7 |
# File 'lib/functions/lamp_phase.rb', line 4 def initialize(params) super(params) @frame_optimized = false end |
Instance Method Details
#arduino_code ⇒ Object
9 10 11 12 13 |
# File 'lib/functions/lamp_phase.rb', line 9 def arduino_code [ "long #{@name}[3] = {this_phase, this_phase, this_phase};" ] end |
#top_level_scope_code ⇒ Object
15 16 17 |
# File 'lib/functions/lamp_phase.rb', line 15 def top_level_scope_code [] end |