Skip to content

Commit

Permalink
minor improvements to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-8 committed Jun 14, 2022
1 parent b963fc4 commit 01c8a6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions examples/KnobExample/KnobExample.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Servo myServo;
void setup()
{
Serial.begin(115200);
Serial.println("position,velocity,acceleration");
myServo.attach(9);
limiter.setPreventGoingWrongWay(false);
limiter.setPosLimits(0, 180);
Expand All @@ -30,7 +31,5 @@ void loop()
Serial.print(limiter.getVelocity());
Serial.print(",");
Serial.print(limiter.getAcceleration());
Serial.print(",");
Serial.print(limiter.isPosModeNotVelocity());
Serial.println();
}
1 change: 1 addition & 0 deletions examples/SmoothServo/SmoothServo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Servo myServo;
void setup()
{
Serial.begin(115200);
Serial.println("position,velocity,acceleration");
myServo.attach(9);
}
void loop()
Expand Down

0 comments on commit 01c8a6a

Please sign in to comment.