Hello.
I am pretty new to Blynk and I try to send data from this resistor to terminal to display it constantly. When I choose graph or value display it works okay but when I try to implement terminal it doesn’t work. Here is my code:
#define BLYNK_PRINT Serial
#include ESP8266WiFi.h
#include BlynkSimpleEsp8266.h
#include SPI.h
char auth[] = "xxx";
char ssid[] = "xxx";
char pass[] = "";
WidgetTerminal terminal(V1);
void setup()
{
// Debug console
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
}
BLYNK_READ(V1)
{
int fsrPin = 0;
int fsrReading;
fsrReading = analogRead(fsrPin);
terminal.print("Analog reading = ");
terminal.print(fsrReading); // raw analog reading
if (fsrReading < 430) {
terminal.println(" - No pressure");
} else if (fsrReading < 500) {
terminal.println(" - Medium squeeze");
} else {
terminal.println(" - Big squeeze");
}
delay(500);
}
void loop()
{
Blynk.run();
}