Class: Feedback
Instance Attribute Summary collapse
-
#feedback ⇒ Object
Returns the value of attribute feedback.
-
#input ⇒ Object
Returns the value of attribute input.
Attributes inherited from Base
Instance Method Summary collapse
- #arduino_code ⇒ Object
-
#initialize(params) ⇒ Feedback
constructor
A new instance of Feedback.
- #param_keys ⇒ Object
- #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, #resolve_frame_optimized, #top_level_scope_arduino_code
Constructor Details
#initialize(params) ⇒ Feedback
Returns a new instance of Feedback.
18 19 20 21 |
# File 'lib/functions/feedback.rb', line 18 def initialize(params) super(params) @frame_optimized = false end |
Instance Attribute Details
#feedback ⇒ Object
Returns the value of attribute feedback.
16 17 18 |
# File 'lib/functions/feedback.rb', line 16 def feedback @feedback end |
#input ⇒ Object
Returns the value of attribute input.
15 16 17 |
# File 'lib/functions/feedback.rb', line 15 def input @input end |
Instance Method Details
#arduino_code ⇒ Object
27 28 29 30 31 |
# File 'lib/functions/feedback.rb', line 27 def arduino_code [ "feedback(i, #{@input.name}, #{@feedback.name}, #{@name}_storage, #{@name});" ] end |
#param_keys ⇒ Object
23 24 25 |
# File 'lib/functions/feedback.rb', line 23 def param_keys [:input, :feedback] end |
#top_level_scope_code ⇒ Object
33 34 35 36 37 38 |
# File 'lib/functions/feedback.rb', line 33 def top_level_scope_code [ "long #{@name}[3];", "long #{@name}_storage[PIXEL_COUNT][3];" ] end |