// ##############################################################
// 16x2 LCD Interface (Parallel Connection) #
// ##############################################################
//
// Interfacing 16x2 LCD display with Raspberry Pi Pico varrient using Arduino Code (Hardware & Simulation)
//
// Check out the link for Code explanation and Hardware details
// Link:
// http://tech.arunkumarn.in/blogs/arduino-uno/interfacing-16x2-lcd-display-with-arduino-uno/
//
// Note:
// - Contrast varry has no effect in wokwi simulation.
//
#include <LiquidCrystal.h>
// Pin Definitions
# define RS 15
# define E 14
# define D7 10
# define D6 11
# define D5 12
# define D4 13
// Initialize the LCD with the pins:
// LiquidCrystal(rs, en, d4, d5, d6, d7)
LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
void setup() {
lcd.begin(16, 2); // Set the LCD size to 16 columns and 2 rows
lcd.print("Welcome to"); // Print first line
lcd.setCursor(0, 1); // Move cursor to second line
lcd.print("Aavishkarah"); // Print Second line
delay(3000); // Delay of 3 sec
}
void loop() {
// Print 0 to 9 with a delay of 1.5 sec for an infinite loop
for (int i=0; i<10; i++){
lcd.clear();
lcd.print(i);
delay(1500);
}
}Contrast Vary