ePaper 4.2
Mar 9, 2025
เรามาทดสอบกันคือรุ่น A1360071 (4.2 นิ้ว)
A1360071 ใช้ GxEPD2_3C<GxEPD2_420c, GxEPD2_420c::HEIGHT> display(GxEPD2_420c(/*CS=D8*/ EPD_CS, /*DC=D3*/ EPD_DC, /*RST=D4*/ EPD_RST, /*BUSY=D2*/ EPD_BUSY)); // GDEW042Z15 400x300, UC8176 (IL0398)
- ต่อสายระหว่าง ePaper Adapter Board กับ บอร์ด ESP8266
- เปิด Arduino IDE แล้ว ติดตตั้ง Library GxEPD2
- เราจะใช้ตัวอย่าง
Get eddy Electronics’s stories in your inbox
Join Medium for free to get updates from this writer.
- ทำการเลือกรุ่นของ ePaper ที่ต้องการโดย unComment ของไฟล์ GxEPD2_display_selection.h
- uncomment ที่บรรทัด GxEPD2_3C<GxEPD2_420c, GxEPD2_420c::HEIGHT / 2> display(GxEPD2_420c(/*CS=D8*/ x, /*DC=D3*/ x, /*RST=D4*/ x, /*BUSY=D2*/ x)); // GDEW042Z15 400x300, UC8176 (IL0398)
- อย่าลืมแก้ไขตำแหน่งขาที่ต่อกับ Adapter board ให้ถูกต้อง (ตัว x) และรายการที่อยู่ภายใน Controller ที่เลือกใช้ (ตามตัวอย่างนี้ใช้ ESP8266)
- โหลดเข้า ESP8266 จะได้ผลดังรูปครับ









