#include <LiquidCrystal.h>
byte downArrow[8] = {0b00100, 0b00100, 0b00100, 0b00100, 0b00100, 0b10101, 0b01110, 0b00100 };
byte upArrow[8] = {0b00100, 0b01110, 0b10101, 0b00100, 0b00100, 0b00100, 0b00100, 0b00100 };
byte menuCursor[8] = {B01000, B00100, B00010, B00001, B00010, B00100, B01000, B00000 };
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
float scdT, scdH, scdC;
float hc2T, hc2H;
void setup() {
// Initializes and clears the LCD screen
lcd.begin(16, 2);
lcd.clear();
lcd.createChar(0, menuCursor);
lcd.createChar(1, upArrow);
lcd.createChar(2, downArrow);
lcd.setCursor(0, 0);
lcd.write (" ClimateChamber ");
lcd.setCursor(0, 1);
lcd.write (" ========== ");
delay(10000);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0, 0);
lcd.print("T:");
lcd.print(hc2T);
lcd.print((char)223);
lcd.print(" CO2: ");
lcd.setCursor(0, 1);
lcd.print("H:");
lcd.print(hc2H);
lcd.print("% ");
lcd.print(scdC);
delay(1000);
}