Hi, thank you for your time, I would really appreciate your help on this.
My LCD activates all pixels in first row when I ask him to write text (no matter what text length), when using the clear function the pixels get deactivated. So I tend to think the problem lies in the crystal lib or in the lcd itself.
#include <dht.h>
#include <LiquidCrystal.h>
#define dataPIN 2
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
dht DHT;
void setup()
{
Serial.begin(9600);
lcd.begin(16, 2);
}
void loop()
{
int read_data = DHT.read22(dataPIN);
float t = DHT.temperature;
float h = DHT.humidity;
//Serial.print("Temperature: ");
//Serial.print(t);
//Serial.println("°C");
//Serial.print("Humidity: ");
//Serial.print(h);
//Serial.println("%");
//Serial.println("-----");
lcd.print("hello world");
delay(5000);
lcd.clear();
delay(5000);
}
Thank you for your help!