Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitshaoxiang committed Feb 28, 2025
1 parent cccb883 commit 9a7c3e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/sample/sample.ino
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ void loop()
{
for (int i = 0; i <= 3; i++) { // channel 0-3
driver.setServoAngle(i, 0); // 0-180 degree
// driver.setServoPulse(i,500); // 500-2500us
delay(200);
}
for (int i = 0; i <= 3; i++) { // channel 0-3
driver.setServoAngle(i, 180); // 0-180 degree
// driver.setServoPulse(i,2500); // 500-2500us
for (int i = 0; i <= 3; i++) { // channel 0-3
driver.setServoPulse(i, 2500); // 500-2500us
delay(200);
}
driver.digitalWritePortB(1);
Expand Down

0 comments on commit 9a7c3e0

Please sign in to comment.