Class: LampPhase

Inherits:
Base
  • Object
show all
Defined in:
lib/functions/lamp_phase.rb

Instance Attribute Summary

Attributes inherited from Base

#frame_optimized, #name

Instance Method Summary collapse

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_codeObject



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_codeObject



15
16
17
# File 'lib/functions/lamp_phase.rb', line 15

def top_level_scope_code
  []
end