firmwareMIT
Arduino Uno: lcd counter
breadboardhub/arduino-lcd-counter
arduinounolcd
B
Mike Mv1.0.0 · UpdatedNov 24, 2026 ·0 downloads ·0 forks
// LCD: a 16x2 display on I2C (address 0x27), wired to A4 and A5.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
int count = 0;
void setup() {
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Hello, Uno!");
}
void loop() {
lcd.setCursor(0, 1);
lcd.print("Count: ");
lcd.print(count);
count++;
delay(500);
}
Description
Write text and a counter on a 16x2 LCD. It compiles and runs on a virtual Uno in the browser. Print your name on the first line.
@design{breadboardhub/arduino-lcd-counter,
title = {Arduino Uno: lcd counter},
author = {breadboardhub},
url = {https://www.breadboardhub.com/breadboardhub/arduino-lcd-counter},
version = {1.0.0}
}