Professional Documents
Culture Documents
Arduino
Arduino
h>
#include <Wire.h> // Comes with Arduino IDE
#include <LiquidCrystal_I2C.h>
// folosesc libraria pentru afisaje LCD simple
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I
2C address
int t1;
int sonerie
float t10;
float t11;
float t12;
= 10; //pinul 10
//
// temperatura
//
//pinMode(led, OUTPUT);
lcd.clear(); // clear the screen
lcd.setCursor(0, 0); // put cursor at colon 2 and row 0 = left/up
lcd.print("Temperatura"); // print a text
lcd.setCursor(1, 1); // put cursor at colon 0 and row 0 = left/down
lcd.print("locala"); // print a text
delay (2000);
lcd.clear(); // clear the screen
}
void temperaturaLoop() {