Class: ExternalVariables

Inherits:
ArduinoSketch show all
Defined in:
lib/examples/external_variables.rb

Instance Attribute Summary

Attributes inherited from ArduinoSketch

#pins

Instance Method Summary collapse

Methods inherited from ArduinoSketch

#add, add_to_setup, #array, #assembler, #comment_box, #compose_setup, #define, #delay, #digitalWrite, #formatted_print, #initialize, #input_pin, #input_pins, output_pin, #output_pin, post_process_ruby_to_c_methods, pre_process, #serial_begin

Methods included from ExternalVariableProcessing

#c_type, #check_variable_type, #post_process_arrays, #post_process_vars, #pre_process_vars, #process_external_vars, #translate_variables

Constructor Details

This class inherits a constructor from ArduinoSketch

Instance Method Details

#loopObject



17
18
19
20
21
# File 'lib/examples/external_variables.rb', line 17

def loop
 delay 1
 @foo = 2
  @foo = KOOL
end

#setupObject

special one time only method



23
24
25
26
27
28
29
# File 'lib/examples/external_variables.rb', line 23

def setup # special one time only method
  delay 100
  delay 100
  @foo = 10
  5.times { delay 200 }

end