As you are Uno with ESP you need Blynk’s softserial example.
The regular Arduino LCD example is:
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis() / 1000);
}
Make both sketches work separately and then combine them.
Depends what you are actually looking to do but you can for example add a button to Blynk that will then send text to your physical LCD depending on the state of the button.
@Costas No, but sending the hex code which make IR receiver works so that we can place an IR led at a suitable place in our room and send different sets of codes which activates the led for Television/Home Theatre/AC/etc.
Kind of using a single smartphone remote instead of multiple controllers!
That can be done already. You store the Hex code in your sketch and Blynk would call the relevant Hex based on whichever button you pressed in your dashboard. As you will know the number of different HEX codes is huge so not really something for Blynk to do, more an end user implementation.
@Aizat_Nazih The Widget LCD doesn’t require connections like a real one (obviously).
It is also not capable of graphics, just text and numbers, pretty much anything ASCII I believe.
And sending information to it is as simple as shown in the >documents<:
WidgetLCD lcd(V1); In app, also assign virtual pin V1 to the Widget LCD in advanced mode.
lcd.clear(); // Clear the LCD Widget screen
lcd.print(4, 0, "Hello"); // print Hello on the 1st line, starting at the 4th character in.
lcd.print(4, 1, "World"); // print World on the 2st line, starting at the 4th character in.
Thanks for that response. How about the Physical LCD display? the example only for LCD widget. i want to make for both physical lcd and lcd widget display at same time
//#define BLYNK_PRINT Serial
//#include ESP8266WiFi.h
//#include BlynkSimpleEsp8266.h
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
char ssid[] = "xxxxxxxxxxxxxx";
char pass[] = "xxxxxxxxxxxx";
WidgetLCD lcd(V1);
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
lcd.clear(); //Use it to clear the LCD Widget
lcd.print(4, 0, "Hello"); // use: (position X: 0-15, position Y: 0-1, "Message you want to print")
lcd.print(0, 1, "word");
// Please use timed events when LCD printintg in void loop to avoid sending too many commands
// It will cause a FLOOD Error, and connection will be dropped
}
void loop()
{
Blynk.run();
}