Arduino Code For Countdown Timer System
CODE #include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // Adjust the pin numbers according to your wiring #include "Countimer.h" // https://github.com/inflop/Countimer Countimer tdown; #include <EEPROM.h> #define bt_set A3 #define bt_up A2 #define bt_down A1 #define bt_start A0 int time_s = 0; int time_m = 0; int time_h = 0; int set = 0; int flag1 = 0, flag2 = 0; int relay = 7; int buzzer = 6; void setup() { Serial.begin(9600); pinMode(bt_set, INPUT_PULLUP); pinMode(bt_up, INPUT_PULLUP); pinMode(bt_down, INPUT_PULLUP); pinMode(bt_start, INPUT_PULLUP); pinMode(relay, OUTPUT); pinMode(buzzer, OUTPUT); lcd.begin(16, 2); // Set the number of columns and rows for your LCD lcd.clear(); lcd.setCursor(0, 0); lcd.print(" Welcome To "); lcd.setCursor(0, 1); lcd.print("Countdown Timer"); tdown.setInterval(print_time, 999); eeprom_read(); delay(1000); lcd.clear(); } void print_time()