เริ่มจากบัดกรีพอร์ต USB เข้ากับโครงทองเหลืองโดยตรง ทริคคือต้องทาตะกั่วที่ USB ไว้ก่อน (Pre-tin) จากนั้นให้ความร้อนที่แท่งทองเหลืองแล้วรีบเอา USB ไปแนบเพื่อหลอมตะกั่วเข้าด้วยกัน (Reflow)
#include<Fonts/FreeMono12pt7b.h>// these are for the fonts I used on the display#include<Fonts/FreeMono9pt7b.h>#include<Fonts/FreeMonoBold12pt7b.h>#include<Fonts/FreeMonoBold18pt7b.h>#include<Fonts/FreeMonoBold24pt7b.h>#include<Fonts/FreeMonoBold9pt7b.h>#include<GxEPD2_3C.h>// to use the display that is a tri colour#include<GxEPD2_BW.h>// this is for if your device is not a tri colour#include<Preferences.h>#include<WebServer.h>#include<WiFi.h>#include<cmoz_logo.h>// a file that has the representation of my CMoz logo#include<esp_sleep.h>// to help our jewellery enter deep sleep#include<qrcode.h>// used to generate a QR code// Pin mapping for ESP32-C3 Mini#define CS_PIN 8 // Chip Select#define DC_PIN 7 // Data/Command#define RST_PIN 9 // Reset#define BUSY_PIN 2 // Busy#define MOSI_PIN 4 // SPI MOSI#define SCK_PIN 10 // scl SPI Clock#define WAKE_BUTTON_PIN 0 // Wake up!// GxEPD2_BW<GxEPD2_213_BN, GxEPD2_213_BN::HEIGHT> display(GxEPD2_213_BN(CS_PIN, DC_PIN, RST_PIN, -1));
GxEPD2_3C<GxEPD2_213_Z98c, GxEPD2_213_Z98c::HEIGHT> display(GxEPD2_213_Z98c(CS_PIN, DC_PIN, RST_PIN, BUSY_PIN));
const char *ssid = "Your SSID CHANGE THIS";
const char *password = "YOUR PASSWORD CHANGE THIS";
// AP mode credentialsconst char *ap_ssid = "Todo-Wrist";
const char *ap_password = "tinkertailor";
/* Example HTML/CSS format for the Web UI:
<html><head><meta http-equiv="refresh" content="2;url=/" />
<style> body { font-family: Arial, sans-serif; text-align: center; padding-top: 50px; background-color: #F0EEE9; color: #000000; } ... </style>
*/
Step 7: ใส่โชว์ความเท่! (Wear It and Conquer Your Day!)