#include <LiquidCrystal.h>
LiquidCrystal lcd(22,23,5,18,19,21);// Change this for your connections (obviously)
void setup()
{
lcd.begin(20, 2);
lcd.clear();
lcd.setCursor(6, 0);
lcd.print("BOMBA");
}
float x = 0; int tempo=200;
void loop()
{
x=(float)tempo/10;
lcd.setCursor(0, 1);
lcd.print(x,1);
lcd.setCursor(8, 1);
lcd.print("seg.");
tempo--;
if(tempo==0){ lcd.setCursor(0, 1);
lcd.print("boooooommmmm");
delay(5000);
tempo=60;
lcd.clear();
lcd.setCursor(6, 0);
lcd.print("BOMBA");}
delay(50);
}