Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

HOMEWORK

จงเขียนโปรแกรมให้บอร์ด Arduino UNO อ่านค่าเซนเซอร์ DHT12 แล้วส่งค่าผ่าน UART ไปยังบอร์ด M5Stack เพื่อให้ค่าที่อ่านได้แสดงผลออกมาบนจอ LCD

Hint Code: M5 Stack LCD print


#include <M5Stack.h>
void setup() {
  m5.begin();
  M5.Lcd.setTextSize(3);
  Serial.begin(115200);
  M5.Lcd.clear();
}

void loop() {
  
  String data = "Hello world";
  M5.Lcd.setCursor(0,0);
  M5.Lcd.print(data);
  delay(200);
  M5.Lcd.clear();
  
}

รูปแบบ Homework ที่ต้องส่ง

Last updated