Skip to content

Commit

Permalink
better commenting for how to set up the sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip van Allen committed Dec 10, 2013
1 parent 8e49689 commit 56bfb82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/ServoSequence/ServoSequence.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ VarSpeedServo myservo1;

const int servoPin1 = 9; // the digital pin used for the servo

servoSequencePoint slow[] = {{100,20},{20,20},{60,50}};
// sequences are defined as an array of points in the sequence
// each point has a position from 0 - 180, and a speed to get to that position
servoSequencePoint slow[] = {{100,20},{20,20},{60,50}}; // go to position 100 at speed of 20, position 20 speed 20, position 60, speed 50
servoSequencePoint twitchy[] = {{0,255},{180,40},{90,127},{120,60}};

const int analogPin = A0;
Expand Down

0 comments on commit 56bfb82

Please sign in to comment.