Parts :
– 1 x Arduino nano
– 1 x LCD
– 1 x Pot 10 kΩ
// include the library code:
#include
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup() {
// set up the LCD’s number of columns and rows:
lcd.begin(16, 2);
lcd.setCursor(0, 1);
// Print a message to the LCD.
lcd.print(« hello, world! »);
}
void loop() {
lcd.setCursor(0, 1);
lcd.print(« hello, world! »);
}