Class: ArduinoMega
Overview
file: arduino_mega.rb
Instance Attribute Summary collapse
-
#p13h ⇒ Object
Returns the value of attribute p13h.
Instance Method Summary collapse
-
#initialize(args = []) ⇒ ArduinoMega
constructor
A new instance of ArduinoMega.
- #to_s ⇒ Object
Methods inherited from Arduino
#analog_read, #analog_write, #close, #get_state, #is_high?, #is_low?, #output, #save_state, #set_high, #set_low, #turn_off
Constructor Details
#initialize(args = []) ⇒ ArduinoMega
Returns a new instance of ArduinoMega.
162 163 164 165 166 167 168 169 |
# File 'lib/arduino_mega.rb', line 162 def initialize(args=[]) super(*args) output(13) # declare output pins if block_given? then yield(self) close() end end |
Instance Attribute Details
#p13h ⇒ Object
Returns the value of attribute p13h.
160 161 162 |
# File 'lib/arduino_mega.rb', line 160 def p13h @p13h end |
Instance Method Details
#to_s ⇒ Object
176 177 |
# File 'lib/arduino_mega.rb', line 176 def to_s() end |