#include <LiquidCrystal.h>
#define BLYNK_TEMPLATE_ID "TMPL3d-B9uaIe"
#define BLYNK_TEMPLATE_NAME "A8"
#define BLYNK_AUTH_TOKEN "0YdES0AG4XLqd2DqXG0vfbNbW11QCzR7"
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
// Create An LCD Object. Signals: [ RS, EN, D4, D5, D6, D7 ]
LiquidCrystal My_LCD(13, 12, 14, 27, 26, 25);
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
BLYNK_WRITE(V0)
{
Serial.println("Inside Blynk Write");
// Clears The LCD Display
My_LCD.clear();
My_LCD.setCursor(0, 1);
My_LCD.print(param.asString());
}
// This function is called every time the device is connected to the Blynk.Cloud
BLYNK_CONNECTED()
{
//Blynk.syncVirtual(V0);
Serial.println("Inside Blynk Connected");
//Blynk.virtualWrite(V0,"Namaste Friends");
}
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
// Initialize The LCD. Parameters: [ Columns, Rows ]
My_LCD.begin(16, 2);
My_LCD.clear();
My_LCD.setCursor(0, 0);
My_LCD.print("Nan Mudhalvan ");
My_LCD.setCursor(0, 1);
My_LCD.print("Students");
}
void loop() {
Blynk.run();
}