/* Hello Wokwi! */
#include <LiquidCrystal_I2C.h> //ชุดคำสั่งที่ถูกรวบรวมไว้ให้แล้ว include=รวมกัน
LiquidCrystal_I2C lcd(0x27, 16, 2); //0x27=adress
int c=37;
float k=c+273.15;
float f=((9.0/5.0)*c)+32;
float r=(4.0/5.0)*c;
void setup() {
lcd.init(); //ติด่อ
lcd.backlight(); //**อย่าลืมกำหนด**
lcd.setCursor(1, 0); //กำหนดการปรากฏ
lcd.print("Hello, Winny!!");
delay(2000);
}
void loop() {
lcd.clear();
lcd.setCursor(2, 0);
lcd.print("C=");
lcd.print(c);
lcd.print(" F=");
lcd.print(f);
lcd.setCursor(0, 1);
lcd.print("K=");
lcd.print(k);
lcd.print(" R=");
lcd.print(r);
delay(2000);
}