Hi, i have an issue. When i use blynk_write function it doesnt work. i use slider to pass data and control servo somehow. and it doesnt work . have any1 has idea what can be wrong
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Servo.h>
Servo servo;
int value;//vaule of rotation
char auth[] = "3e0c43c56c494b139abed9d05cd3a032";
char ssid[] = "21:37";
char pass[] = "elomelo12";
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
servo.attach(15);
}
BLYNK_WRITE(V0)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
value = pinValue;
servo.write(30);
Serial.print("Rotation: ");
Serial.println(pinValue);
}
void loop()
{
Blynk.run();
Serial.println(value);
}
Yes it does!
Three backticks look like this:
```
If you copy and paste these characters at the top and bottom of your code the it will display correctly.