캐릭터 LCD 1602A 다루기 - 글자표시, 온도와 빛 센서 표시
#include #include LiquidCrystal lcd(12, 11, 5, 4, 3, 2);int pin=8; DHT11 dht11(pin); void setup(){ lcd.begin(16,2); //16 by 2 character display} int err;float temp, humi; void loop(){ delay(1000);if((err=dht11.read(humi, temp))==0) { lcd.clear(); lcd.setCursor(0,0); lcd.print("Humidity= "); lcd.print(humi,1); lcd.print("%"); lcd.setCursor(0,1); lcd.print("Temp= "); lcd.print(temp,1); lcd.print("..