lcd.begin();
lcd.backlight();
lcd.setCursor(11,0);
lcd.print(F("Let's Rock On"));
lcd.scrollDisplayLeft();
for (int i = 0; i < 10; i++)
{
lcd.scrollDisplayLeft();
delay(500);
}
With the above code I am able to scroll the text as per left option on Row 1
Now I want to scroll "Get Set Go" from Right on ROW 2 at the same time when Row 1 text starts enter
I mean a cool look like advt. display boards
Text entering from one side on upper line & at same time text entering from right side on lower line
Like that
Please guide
Which LCD?
Why not post your entire code?
Its the only entire code within void loop & rest is all the way same like adding LCD library etc etc
available everywhere
16x4 LCD
Just want to display left and right scrolling at the same time that i am unable to do
The rest of the code is important.
Please post it.
Dolling out info by the spoonful will slow down the ability to answer properly.
#include <LCD_I2C.h>
LCD_I2C lcd(0x27, 16, 2);
void setup()
{
lcd.begin();
lcd.backlight();
lcd.setCursor(11,0);
lcd.print(F("Let's Rock On"));
lcd.scrollDisplayLeft();
for (int i = 0; i < 10; i++)
{
lcd.scrollDisplayLeft();
delay(500);
}
}
First, there is no loop() function, so this will not run as posted.
Second, you say 16x4 but you have it configured as 16x2. Which is it?
Then, we can go over scrolling. Did you know that this library has scrolling functions?
I just checked the code
Working fine and uploading too fast
I doubt you will find a library with the ability to scroll individual lines in opposite directions simultaneously. Write your own code to put each line in a buffer, shift each buffer one character in the desired direction, then overwrite the display.
gfvalvo
October 19, 2022, 2:10pm
10
Impossible. The code you posted had no loop() function.
I checked all that but the way I needed is not present there
its typing issue => 16x2 general basic one only
Code is running well and good
Please let me know about the target thing in the thread
gfvalvo
October 19, 2022, 2:11pm
13
Nope. You need to post the complete code. Why is that so hard for you to understand?
Ok . . would you please just elaborate it ?
Not getting the actual point what to do
That is the only full code I have as I use to work on small things first to learn step by step
This code is working fine just I checked
Please copy and test it
Not here to dispute the merits of posting code, you're still missing some.
Check this out: GitHub - blackhack/LCD_I2C: Arduino library to control 16x2 LCD via an I2C adapter based on PCF8574T There are examples.
Then check this out: How to get the best out of this forum - Using Arduino / Installation & Troubleshooting - Arduino Forum as arguing with those trying to help you is unproductive at best.
Good luck.
gfvalvo
October 19, 2022, 2:16pm
17
Where is the loop() function?
Ya I gone through all the 3 examples as its from Arduino library
From these one i fetched out things and did practicals but failed
But still as per your suggestion I ll try again and post the newly formed code explaining errors
Some 3 months ago I tried actually !!!
gfvalvo
October 19, 2022, 2:20pm
20
King_RAJ_Enters:
for loop ????
'void loop()' like in every Arduino sketch you've ever seen:
void setup() {
}
void loop() { // <------- THIS -----
}