cookbook/Servo/sweep.rb in wall_e-0.0.1 vs cookbook/Servo/sweep.rb in wall_e-0.0.2

- old
+ new

@@ -1,10 +1,16 @@ require 'bundler/setup' require 'wall_e' WallE::Assembler.build do - - servo = Servo(9) + # This example uses a Sparkfun's "Medium" servo. + # (DGServo S05NF STD http://www.sparkfun.com/products/10333) + # Using the range 15..170 appears to be the sweet spot for this servo. + # + # YMMV especially if you are using a different servo. + # + # The Hitec HS-322 (http://amzn.com/B0006O3XEA) has a range of 2..180. + servo = Servo(9, range: 15..170) servo.min repeat do servo.min if servo.maxed? \ No newline at end of file