Cuando intento compilar me da estos errores y no se como solucionarlo.
#include <LiquidCrystal.h>
#include "DHT.h"
#define DHTPIN 8
// 8 pin conexion DHT22
#define DHTTYPE DHT22
// dht11 è il tipo di sensore che uso
DHT dht(DHTPIN, DHTTYPE);
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// conexon display pins
const int tsu = 6;
const int tgiu = 7;
const int hsu = 9;
const int hgiu = 10;
const int tout = 14;
const int hout = 15;
//estado de los botones.
int statotsu = 0;
int statotgiu = 0;
int statohsu = 0;
int statohgiu = 0;
int tempimpostata = 0;
int umidimpostata = 0;
void setup() {
lcd.begin(16, 2);
// columnas y filas
lcd.print("TEMP");
lcd.setCursor(10,0);
lcd.print("SET");
lcd.setCursor(0,1);
lcd.print("HUM");
lcd.setCursor(10,1);
lcd.print("SET");
pinMode(tout, OUTPUT);
pinMode(hout, OUTPUT);
}
void loop() {
statotsu = digitalRead (tsu);
if( statotsu == HIGH)
{tempimpostata++;}
statotgiu = digitalRead (tgiu);
if( statotgiu == HIGH)
{tempimpostata--;}
statohsu = digitalRead (hsu);
if( statohsu == HIGH)
{umidimpostata++;}
statohgiu = digitalRead (hgiu);
if( statohgiu == HIGH)
{umidimpostata--;}
int t = dht.readTemperature();
int h = dht.readHumidity();
// posiciono el cursor
lcd.setCursor(5, 0);
lcd.print(t);
lcd.setCursor(14, 0);
lcd.print(tempimpostata);
lcd.setCursor(5, 1);
lcd.print(h);
lcd.setCursor(14, 1);
lcd.print(umidimpostata);
if (tempimpostata > -1 && tempimpostata < 10)
{ lcd.setCursor (15, 0);
lcd.print (" ");}
if (umidimpostata > -1 && umidimpostata < 10)
{ lcd.setCursor (15, 1);
lcd.print (" ");}
if ( t < tempimpostata )
{digitalWrite ( tout, HIGH );}
else {digitalWrite (tout, LOW);}
if ( h < umidimpostata )
{digitalWrite ( hout, HIGH );}
else {digitalWrite (hout, LOW);}
}
Los errores son: con el IDE 0023
In file included from sketch_feb19a.cpp:1:
C:\Users\F2V\Desktop\arduino-0023\libraries\LiquidCrystal/LiquidCrystal.h:82: error: conflicting return type specified for 'virtual size_t LiquidCrystal::write(uint8_t)'
C:\Users\F2V\Desktop\arduino-0023\hardware\arduino\cores\arduino/Print.h:40: error: overriding 'virtual void Print::write(uint8_t)'