Class: ArduinoMega

Inherits:
Arduino show all
Defined in:
lib/arduino_mega.rb

Overview

file: arduino_mega.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#p13hObject

Returns the value of attribute p13h.



160
161
162
# File 'lib/arduino_mega.rb', line 160

def p13h
  @p13h
end

Instance Method Details

#to_sObject



176
177
# File 'lib/arduino_mega.rb', line 176

def to_s()
end