Hello I need help I’ve tried to use servos on blynk but they don’t moove it’s not an electronic problem because I use another code with a real joystick and it’s work so the problem is in the code. (I know there isn’t the pass word etc but I don’t want to share my password
#define BLYNK_PRINT Serial
#include <ESP32Servo.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
Servo servo1;
Servo servo2;
BLYNK_WRITE(V3)
{
servo1.write(param.asInt());
}
BLYNK_WRITE(V4)
{
servo2.write(param.asInt());
}
void setup()
{
// Debug console
Serial.begin(9600);
servo1.attach(14);
servo2.attach(15);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
@lesfouduDIY please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```
Of course you’ll need to install the library first if you don’t have it already installed… Just saying that all examples i saw were using the servo library…