Le code suivant fait défiler le texte de gauche à droite, mais enveloppe les caractères débordant sur la ligne supérieure. Comment obtenir le texte à afficher dans son intégralité, en défilant de gauche à droite, mais sur la ligne du bas seulement.Arrêter l'enrubannage du cristal liquide Arduino sur deux lignes
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(9, 8, 5, 4, 3, 2);
void setup()//method used to run the code for once
{
lcd.begin(16, 2);//LCD order
lcd.setCursor(0,1);//Setting the cursor on LCD
lcd.print("www.TheEngineeringProjects.comwww.TheEngineeringProjects.com");//prints on LCD
delay(1000);//delay of 1 second
}
void loop() //used to run the code repeatedly
{
for(int PositionCount=0;PositionCount<20; PositionCount++)//loop for scrolling the LCD text
{
lcd.scrollDisplayLeft();//builtin command to scroll left the text
delay(150);// delay of 150 msec
}
}
Autre que tronqué? –
Désolé, je n'étais pas clair. Je veux essentiellement que l'écran se comporte comme s'il était 16x1, je veux que le texte défile sur une ligne de gauche à droite. –