Write program to display 1 to 100 on LCD as follows :

Here i am using online IDE Tinkercad . If you don't know what is tinkercad then refer my blog HERE or else you can use offline IDE also.

Code :-

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {

  lcd.begin(16, 2);

  lcd.setCursor(5, 0);

  lcd.print("Number");

}

void loop() {

  for(int i = 1 ; i<=100 ;i++)  

  {

    lcd.setCursor(7, 1);

    lcd.print(i);

   delay(1000);

  }

}

Output :-


Comments

Popular Posts

Receive the data between 0 to 9 serially using arduino.

Interface Potentiometer and dc motor with Arduino Uno. Develop an Arduino sketch to control speed of DC motor using Potentiometer.