We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5401cb1 commit 3f44674Copy full SHA for 3f44674
libraries/PWM/examples/ServoMotor/ServoMotor.ino
@@ -6,7 +6,7 @@
6
*/
7
#include "ServoESP32S2.h"
8
9
-#define servoPin D8
+#define servoPin D8 // SD pini
10
Servo_ESP32S2 servo ={-1, servoPin};
11
int position = 0;
12
@@ -17,11 +17,11 @@ void setup(){
17
}
18
19
void loop(){
20
- for (position = 0; position <= 180; position += 5){
+ for (position = 0; position <= 180; position += 30){
21
ServoESP32S2.setPosition(servo.servoIndex, position);
22
delay(50);
23
24
- for (position = 180; position >= 0; position -= 5){
+ for (position = 180; position >= 0; position -= 30){
25
26
27
0 commit comments