#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 4);
// Variáveis do jogo
int runsA = 0;
int runsB = 0;
int inning = 1;
int balls = 0;
int strikes = 0;
int outs = 0;
// Botões
const int btnRunA = 2;
const int btnRunB = 3;
const int btnBall = 4;
const int btnStrike = 5;
const int btnOut = 6;
const int btnInning = 7;
const int btnReset = 8;
void setup() {
lcd.init();
lcd.backlight();
pinMode(btnRunA, INPUT_PULLUP);
pinMode(btnRunB, INPUT_PULLUP);
pinMode(btnBall, INPUT_PULLUP);
pinMode(btnStrike, INPUT_PULLUP);
pinMode(btnOut, INPUT_PULLUP);
pinMode(btnInning, INPUT_PULLUP);
pinMode(btnReset, INPUT_PULLUP);
atualizarTela();
}
void loop() {
if(!digitalRead(btnRunA)) {
runsA++;
delay(300);
}
}
void atualizarTela() {
}