class HelloServos

Public Instance Methods

a() click to toggle source
# File lib/examples/hello_servos.rb, line 45
def a
  pulse_servo servo_1, 1450
  delay 100
  home servo_1
  delay 20
end
b() click to toggle source
# File lib/examples/hello_servos.rb, line 52
def b
  pulse_servo servo_1, 1350
  delay 100
  home servo_1
  delay 20
end
c() click to toggle source
# File lib/examples/hello_servos.rb, line 59
def c
  pulse_servo servo_2, 1450
  delay 100
  home servo_2
  delay 20
end
d() click to toggle source
# File lib/examples/hello_servos.rb, line 66
def d
  pulse_servo servo_2, 1350
  delay 100
  home servo_2
  delay 20
end
e() click to toggle source
# File lib/examples/hello_servos.rb, line 73
def e
  pulse_servo servo_3, 1500
  delay 100
  home servo_3
  delay 20
end
home(s) click to toggle source

center servos

# File lib/examples/hello_servos.rb, line 83
def home(s)
  pulse_servo s, 1400
  f = s + 0
end
loop() click to toggle source

time to go old school

# File lib/examples/hello_servos.rb, line 9
def loop
  song_sheet_two
end
song_sheet_two() click to toggle source
# File lib/examples/hello_servos.rb, line 13
def song_sheet_two
  e
  d
  e
  d 
  c
  d
  d
  c
  b
  c
  b
  a
  e
  a
  e
  a
  e
  a
  b
  c
  b
  c
  d
  d
  c
  d
  e
  d
  e
end