Programming Examples

Arduino program to run a counter and display in LCD


Arduino program to print Counter in  LCD

Write a Arduino program to print the Counter value in LCD 16 x 2

#include 
int seconds = 0;
Adafruit_LiquidCrystal lcd(0);
void setup()
{
  lcd.begin(16,2);
  lcd.print("Start");
}
void loop()
{
  lcd.setCursor(0, 1);
  lcd.print(seconds);
 lcd.setBacklight(1);
 delay(500); // Wait for 500 millisecond(s)
 lcd.setBacklight(0);
  delay(500); // Wait for 500 millisecond(s)
  seconds += 1;
  
}
Output


Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2024 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz