Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <LiquidCrystal.h>
- LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
- int cont = 015;
- //--------------------------
- void setup()
- {
- lcd.begin(16, 2);
- }
- //--------------------------
- void loop()
- {
- if(cont <= 0)
- {
- cont = 015;
- }
- else
- {
- cont--;
- }
- delay(500);
- lcd.setCursor(1, 0);
- lcd.print("CONT. REGRESSIVA");
- lcd.setCursor(1, 1);
- lcd.print("TEMPO: " );
- lcd.print(cont);
- lcd.print(" ");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement