#include <LiquidCrystal.h>
unsigned long last_time = 0;
unsigned long last_time2 = 0;
unsigned long last_time3 = 0;
// Define LCD pin numbers
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
// Counter variable
int counter = 0;
void setup() {
// Set up the LCD's number of columns and rows
lcd.begin(16, 2);
// Print initial message to LCD
lcd.print("Counter:");
// Set initial position for counter
// lcd.setCursor(0, 1);
// lcd.print("0");
}
void loop() {
int hundred_counter = 1;
int point_place = 4;
unsigned long time = millis();
lcd.setCursor(4, 1);
// Increment counter
if(time - last_time >= 10) {
counter++;
last_time = time;
// Update LCD display
// lcd.setCursor(8, 1);
//lcd.print(" "); // Clear previous number
lcd.setCursor(3, 1);
lcd.print(counter);
}
if(time - last_time2 >= 1){
}
if(time - last_time3 >= hundred_counter );
}