#include <LiquidCrystal.h>
#define PIZ 4
#define LED_PIN 13
#define BRIGHTNESS 255
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
vol\ int timeSec = 10;
int s = timeSec;
uint64_t lastTime = 0;
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
pinMode(2, INPUT_PULLUP);
pinMode(3, INPUT_PULLUP);
pinMode(PIZ, OUTPUT);
attachInterrupt(0, pravo, FALLING);
attachInterrupt(1, levo, FALLING);
lastTime = millis();
}
void loop() {
update_data();
}
void pravo() {
nomer ++;
if (nomer > 3) {
nomer = 1;
}
}
void levo() {
nomer --;
if (nomer < 1) {
nomer = 3;
}
}
void print_to_lcd(int x, int y, String row) {
lcd.setCursor(x, y);
lcd.print(row);
}