#include <LiquidCrystal.h>
#include <Adafruit_Sensor.h>
#include "DHT.h"
#define DHTPIN 5
#define DHTTYPE DHT22
const int DHT_PIN=5;
DHT dht(DHTPIN,DHTTYPE);
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(19, 23, 18, 17, 16, 15);
byte customChar[8]={
0b11111,
0b00100,
0b00100,
0b11100,
0b10111,
0b11101,
0b00101,
0b00101
};
byte customChar1[18]={
0b11111,
0b00101,
0b00100,
0b11100,
0b10111,
0b11101,
0b00101,
0b00101
};
void setup() {
// set up the LCD's number of columns and rows:
// lcd.begin(16, 0);
// Serial.begin(9600);
// Serial.println("DHT22 TEST !");
// dht.begin();
lcd.setCursor(0,1)
lcd.createChar(0,customChar);
lcd.createChar(0,customChar1);
lcd.begin(16,2);
lcd.write((byte)0);
lcd.write((byte)1);
}
void loop() {
// delay(2000); // this speeds up the simulation
// float h = dht.readHumidity();
// float t=dht.readTemperature();
// Serial.print("Humidity\t");
// Serial.print(h);
// Serial.print("%\n");
// delay(500);
// Serial.print("temperature: \t");
// Serial.print(t);
// Serial.print("*C\n");
// lcd.setCursor(0,0);
// for(int i=0;i<=30;i++)
// {
// lcd.print("the temperature is:");
// lcd.print( t);
// delay(1000);
// lcd.print("the humidity is:");
// lcd.print( h);
// if(i>16)
// {
// lcd.autoscroll();
// }
// }
}