#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
void setup() {
lcd.begin(16, 2);
lcd.print("Hello World!");
lcd.setCursor(2, 1);
lcd.print("> Pi Pico <");
}
void loop() {
scrollText("Wokwi Simulation ");
delay(300);
}
void scrollText(const char* text) {
int textLength = strlen(text);
for (int i = 0; i < textLength + 16; ++i) {
lcd.scrollDisplayRight();
delay(200);
}
}