#include <LiquidCrystal_I2C.h>
const int led=13;
const int bt=2;
#define I2C_ADDR 0x27
#define LCD_COLUMNS 20
#define LCD_LINES 4
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
const float BETA = 3950; // should match the Beta Coefficient of the thermistor
void setup() {
Serial.begin(9600);
// Init
pinMode(led, OUTPUT);
pinMode(bt, INPUT_PULLUP);
lcd.init();
lcd.backlight();
// Print something
}
void loop() {int prog = digitalRead(bt);
int mais = 1;
if (prog == HIGH){
for (mais; prog == HIGH;mais= mais +1){ lcd.setCursor(2,2);
lcd.print(mais);
if (prog == LOW){break;};
};};
}