{"id":1082,"date":"2023-08-12T22:36:22","date_gmt":"2023-08-12T14:36:22","guid":{"rendered":"https:\/\/xujiwei.com\/blog\/?p=1082"},"modified":"2023-08-12T22:36:22","modified_gmt":"2023-08-12T14:36:22","slug":"esp32-s3-iot-hat-design","status":"publish","type":"post","link":"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/","title":{"rendered":"ESP32-S3 \u5f00\u53d1\u677f\u914d\u5957\u7269\u8054\u7f51\u6269\u5c55\u677f\u7684\u8bbe\u8ba1\u4e0e\u5236\u4f5c"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<p class=\"ez-toc-title\">\u6587\u7ae0\u76ee\u5f55<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69e15f2ca78b9\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e15f2ca78b9\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E8%AE%BE%E8%AE%A1%E7%9B%AE%E6%A0%87\" title=\"\u8bbe\u8ba1\u76ee\u6807\">\u8bbe\u8ba1\u76ee\u6807<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E5%8A%9F%E8%83%BD%E8%AE%BE%E8%AE%A1\" title=\"\u529f\u80fd\u8bbe\u8ba1\">\u529f\u80fd\u8bbe\u8ba1<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E6%95%B4%E4%BD%93%E5%8E%9F%E7%90%86%E5%9B%BE\" title=\"\u6574\u4f53\u539f\u7406\u56fe\">\u6574\u4f53\u539f\u7406\u56fe<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E8%BE%93%E5%85%A5%E6%A8%A1%E5%9D%97\" title=\"\u8f93\u5165\u6a21\u5757\">\u8f93\u5165\u6a21\u5757<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#5_%E4%B8%AA%E7%94%A8%E6%88%B7%E6%8C%89%E9%94%AE\" title=\"5 \u4e2a\u7528\u6237\u6309\u952e\">5 \u4e2a\u7528\u6237\u6309\u952e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E5%A4%9A%E5%8A%9F%E8%83%BD%E6%8C%89%E9%94%AE\" title=\"\u591a\u529f\u80fd\u6309\u952e\">\u591a\u529f\u80fd\u6309\u952e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#TF_%E8%AF%BB%E5%8D%A1%E5%99%A8\" title=\"TF \u8bfb\u5361\u5668\">TF \u8bfb\u5361\u5668<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E7%94%B5%E6%B1%A0%E7%94%B5%E5%8E%8B_ADC\" title=\"\u7535\u6c60\u7535\u538b ADC\">\u7535\u6c60\u7535\u538b ADC<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E8%BE%93%E5%87%BA%E6%A8%A1%E5%9D%97\" title=\"\u8f93\u51fa\u6a21\u5757\">\u8f93\u51fa\u6a21\u5757<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#LCD_%E5%B1%8F%E5%B9%95\" title=\"LCD \u5c4f\u5e55\">LCD \u5c4f\u5e55<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#096%E5%AF%B8_12864_OLED\" title=\"0.96\u5bf8 12864 OLED\">0.96\u5bf8 12864 OLED<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#WS2812_LED\" title=\"WS2812 LED\">WS2812 LED<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E8%9C%82%E9%B8%A3%E5%99%A8\" title=\"\u8702\u9e23\u5668\">\u8702\u9e23\u5668<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E6%80%BB%E7%BA%BF%E6%A8%A1%E5%9D%97\" title=\"\u603b\u7ebf\u6a21\u5757\">\u603b\u7ebf\u6a21\u5757<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#SPI_%E6%80%BB%E7%BA%BF\" title=\"SPI \u603b\u7ebf\">SPI \u603b\u7ebf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#I2C_%E6%80%BB%E7%BA%BF\" title=\"I2C \u603b\u7ebf\">I2C \u603b\u7ebf<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E6%9C%80%E7%BB%88_PCB_%E4%BA%A7%E5%93%81\" title=\"\u6700\u7ec8 PCB \u4ea7\u54c1\">\u6700\u7ec8 PCB \u4ea7\u54c1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/#%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE\" title=\"\u5f00\u6e90\u9879\u76ee\">\u5f00\u6e90\u9879\u76ee<\/a><\/li><\/ul><\/nav><\/div>\n<p>\u5728\u5b8c\u6210\u4e4b\u524d\u7684 <a href=\"https:\/\/xujiwei.com\/blog\/2023\/07\/esp32-s3-devkit-diy\/\">\u300aESP32-S3 \u6700\u5c0f\u5f00\u53d1\u677f\u300b<\/a> \u4e4b\u540e\uff0c\u60f3\u5230\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\uff0c\u90fd\u662f\u7528 ESP32-S3 \u505a\u7269\u8054\u7f51\u76f8\u5173\u7684\u5e94\u7528\u3002\u5728\u8fd9\u8fc7\u7a0b\u4e2d\uff0c\u53c8\u4f1a\u78b0\u5230\u4e00\u4e9b\u4f1a\u7ecf\u5e38\u91cd\u590d\u4f7f\u7528\u7684\u6a21\u5757\uff0c\u4f8b\u5982 LCD \u5c4f\u5e55\u3001I2C \u5916\u8bbe\u7b49\uff0c\u8fd9\u4e2a\u65f6\u5019\u5982\u679c\u6709\u4e00\u4e2a\u73b0\u6210\u7684\u6269\u5c55\u677f\uff0c\u5c31\u53ef\u4ee5\u7701\u53bb\u5f88\u591a\u901a\u8fc7\u675c\u90a6\u7ebf\u8fde\u63a5\u6a21\u5757\u7684\u65f6\u95f4\uff0c\u63d0\u5347\u5e94\u7528\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<p>\u5728\u505a\u5b8c ESP32-S3 \u6700\u5c0f\u5f00\u53d1\u677f\u4e4b\u540e\uff0c\u6211\u5c31\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u5e76\u4e14\u53c2\u8003\u4e86\u4e00\u4e9b\u5176\u4ed6\u6269\u5c55\u677f\uff0c\u5f00\u59cb\u8bbe\u8ba1\u4e00\u4e2a\u4e3b\u8981\u7528\u4e8e\u7269\u8054\u7f51\u9886\u57df\u7684\u6269\u5c55\u677f\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E8%AE%BE%E8%AE%A1%E7%9B%AE%E6%A0%87\"><\/span>\u8bbe\u8ba1\u76ee\u6807<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u548c ESP32-S3 \u6700\u5c0f\u5f00\u53d1\u677f\u4e00\u6837\uff0c\u4e3a\u4e86\u4f7f\u521d\u5b66\u8005\u66f4\u5bb9\u6613\u4f7f\u7528\uff0c\u8fd9\u6b21\u7684\u6269\u5c55\u677f\u4e5f\u4f1a\u57fa\u4e8e\u5bb9\u6613\u710a\u63a5\u7684\u524d\u63d0\u53bb\u89c4\u5212\uff0c\u4e3b\u8981\u4f7f\u7528 0805 \u5143\u4ef6\u548c 2.54mm \u6392\u6bcd\u63d2\u4ef6\uff0c\u5176\u4e2d\u591a\u6570\u5143\u4ef6\u4ee5\u6a21\u5757\u7684\u65b9\u5f0f\u6765\u5f15\u5165\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u6dd8\u5b9d\u8d2d\u4e70\u5bf9\u5e94\u7684\u6a21\u5757\u76f4\u63d2\uff0c\u907f\u514d\u5728\u6a21\u5757\u7684\u7535\u8def\u8bbe\u8ba1\u4e0a\u82b1\u8d39\u592a\u591a\u65f6\u95f4\u3002<\/p>\n<p>\u6574\u4e2a\u6269\u5c55\u677f\u4ee5\u8f93\u5165\u6a21\u5757\u3001\u8f93\u51fa\u6a21\u5757\u548c\u603b\u7ebf\u6a21\u5757\u4e09\u90e8\u5206\u7ec4\u6210\uff0c\u5bf9\u5e94\u5230\u7269\u8054\u7f51\u5f00\u53d1\u4e2d\u7684\u5927\u591a\u6570\u5c55\u793a\u4ee5\u53ca\u4ea4\u4e92\u573a\u666f\u3002<\/p>\n<p><strong>\u8f93\u5165\u6a21\u5757<\/strong><\/p>\n<ul>\n<li>5 \u4e2a\u7528\u6237\u6309\u952e\n<ul>\n<li>\u63a5\u53d7\u7528\u6237\u8f93\u5165\uff0c\u53ef\u4ee5\u4f5c\u4e3a\u65b9\u5411\u952e\uff0c\u4e5f\u53ef\u4ee5\u6a21\u62df\u9f20\u6807\u79fb\u52a8\u548c\u6309\u4e0b\u64cd\u4f5c<\/li>\n<\/ul>\n<\/li>\n<li>\u591a\u529f\u80fd\u6309\u952e\n<ul>\n<li>\u5e38\u89c1\u7684\u624b\u6301\u8bbe\u5907\uff0c\u4f1a\u63d0\u4f9b\u4e00\u4e2a\u591a\u529f\u80fd\u6309\u952e\u6765\u5b9e\u73b0\u5411\u4e0a\u3001\u5411\u4e0b\u3001\u6309\u538b\u4e09\u79cd\u64cd\u4f5c<\/li>\n<\/ul>\n<\/li>\n<li>TF \u8bfb\u5361\u5668\n<ul>\n<li>\u7528\u4e8e\u6570\u636e\u6587\u4ef6\u7684\u4fdd\u5b58\u548c\u8bfb\u53d6<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>\u8f93\u51fa\u6a21\u5757<\/strong><\/p>\n<ul>\n<li>LCD \u5c4f\u5e55\n<ul>\n<li>\u663e\u793a\u754c\u9762\u548c\u6570\u636e<\/li>\n<\/ul>\n<\/li>\n<li>WS2812 LED\n<ul>\n<li>\u72b6\u6001\u6307\u793a\uff0c\u706f\u5149\u6548\u679c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>\u603b\u7ebf\u6a21\u5757<\/strong><\/p>\n<ul>\n<li>I2C \u603b\u7ebf\n<ul>\n<li>\u5e38\u89c1\u4f20\u611f\u5668\u6a21\u5757\u90fd\u652f\u6301 I2C \u901a\u4fe1\uff0c\u9700\u8981\u652f\u6301\u591a\u4e2a I2C \u6a21\u5757\u540c\u65f6\u8fde\u63a5<\/li>\n<\/ul>\n<\/li>\n<li>SPI \u603b\u7ebf\n<ul>\n<li>\u548c\u5c4f\u5e55\u6216\u8005 TF \u8bfb\u5361\u5668\u6a21\u5757\u8fdb\u884c\u901a\u4fe1<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"%E5%8A%9F%E8%83%BD%E8%AE%BE%E8%AE%A1\"><\/span>\u529f\u80fd\u8bbe\u8ba1<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"%E6%95%B4%E4%BD%93%E5%8E%9F%E7%90%86%E5%9B%BE\"><\/span>\u6574\u4f53\u539f\u7406\u56fe<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-full.png\" alt=\"esp32-hat-schematic-full.png\" style=\"zoom:50%;\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%BE%93%E5%85%A5%E6%A8%A1%E5%9D%97\"><\/span>\u8f93\u5165\u6a21\u5757<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"5_%E4%B8%AA%E7%94%A8%E6%88%B7%E6%8C%89%E9%94%AE\"><\/span><strong>5 \u4e2a\u7528\u6237\u6309\u952e<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-user-buttons.png\" alt=\"esp32-hat-schematic-user-buttons\" style=\"zoom:50%;\" \/><br \/>\n<img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-render-user-buttons.png\" alt=\"esp32-hat-render-user-buttons\" style=\"zoom:50%;\" \/><\/p>\n<p>\u4f5c\u4e3a\u5e38\u89c1\u7684\u7528\u6237\u8f93\u5165\u9014\u5f84\uff0c\u6269\u5c55\u677f\u8bbe\u8ba1\u4e86 5 \u4e2a\u7528\u6237\u6309\u952e\uff0c\u4f7f\u7528\u4e94\u5411\u6309\u952e\u5e03\u5c40\uff0c\u8fd9\u6837\u5728\u4e00\u4e9b\u573a\u666f\u4e2d\uff0c\u53ef\u4ee5\u6a21\u62df\u9f20\u6807\u7684\u79fb\u52a8\u548c\u6309\u4e0b\u64cd\u4f5c\u3002<\/p>\n<p>\u56e0\u4e3a\u662f\u548c ESP32-S3 \u914d\u5408\u4f7f\u7528\uff0cESP32-S3 \u7684 GPIO \u5185\u7f6e\u4e86\u4e0a\u62c9\u7535\u963b\uff0c\u53ef\u4ee5\u901a\u8fc7 pinMode(GPIO, INPUT_PULLUP) \u65b9\u5f0f\u542f\u7528\uff0c\u56e0\u6b64\u5728 PCB \u4e0a\u76f4\u63a5\u5c06 GPIO\u3001\u6309\u952e\u3001\u5730\u8fde\u63a5\u3002<\/p>\n<p>\u6309\u94ae\u6309\u4e0b\u65f6\uff0cGPIO \u5c06\u8bfb\u5230\u4f4e\u7535\u5e73\uff0c\u8fd9\u65f6\u53ef\u4ee5\u5904\u7406\u76f8\u5e94\u7684\u6309\u952e\u4e8b\u4ef6\u3002<\/p>\n<p>\u4e3a\u4e86\u51cf\u5c11\u7535\u8def\u590d\u6742\u5ea6\uff0c\u6ca1\u6709\u589e\u52a0\u6d88\u6296\u7535\u5bb9\uff0c\u53ef\u4ee5\u4f7f\u7528\u8f6f\u4ef6\u65b9\u5f0f\u6d88\u9664\u6296\u52a8\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"%E5%A4%9A%E5%8A%9F%E8%83%BD%E6%8C%89%E9%94%AE\"><\/span><strong>\u591a\u529f\u80fd\u6309\u952e<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-multi-button.png\" alt=\"esp32-hat-schematic-multi-button\" style=\"zoom:50%;\" \/><br \/>\n<img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-render-multi-button.png\" alt=\"esp32-hat-render-multi-button\" style=\"zoom:50%;\" \/><\/p>\n<p>\u4e00\u4e9b\u5e38\u89c1\u7684\u624b\u6301\u5c0f\u8bbe\u5907\uff0c\u4f1a\u4f7f\u7528\u591a\u529f\u80fd\u6309\u952e\u6765\u5b9e\u73b0\u5168\u90e8\u5bfc\u822a\u64cd\u4f5c\uff0c\u5e76\u4e14\u591a\u529f\u80fd\u6309\u952e\u4f7f\u7528\u4e0a\u4e5f\u6bd4\u8f83\u65b9\u4fbf\u548c\u7b80\u5355\u3002<\/p>\n<p>\u8fd9\u91cc\u6269\u5c55\u677f\u4f7f\u7528\u4e86 ALPS SLLB120200 \u591a\u529f\u80fd\u6309\u952e\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e24\u6bb5\u7684\u5411\u4e0a\u6216\u5411\u4e0b\u62e8\u52a8\u68c0\u6d4b\u4ee5\u53ca\u6309\u4e0b\u64cd\u4f5c\u652f\u6301\uff0c\u57fa\u672c\u4e0a\u53ef\u4ee5\u6ee1\u8db3\u5927\u591a\u6570\u573a\u666f\u7684\u5bfc\u822a\u64cd\u4f5c\u3002<\/p>\n<p>\u591a\u529f\u80fd\u6309\u952e\u7684\u539f\u7406\u548c\u7f16\u7801\u5668\u4e0d\u4e00\u6837\uff0c\u5b83\u7684\u539f\u7406\u8ddf\u8f7b\u89e6\u5f00\u5173\u4e00\u6837\uff0c\u90fd\u662f\u901a\u8fc7\u5355\u4e2a GPIO \u7684\u7535\u5e73\u6765\u68c0\u6d4b\u72b6\u6001\uff0c\u56e0\u6b64\u8fd9\u4e2a\u591a\u529f\u80fd\u6309\u952e\u4f1a\u5360\u7528 5 \u4e2a GPIO\u3002<\/p>\n<p>\u540c\u7528\u6237\u6309\u952e\u4e00\u6837\uff0c\u591a\u529f\u80fd\u6309\u952e\u4e5f\u4f7f\u7528\u5185\u7f6e\u4e0a\u62c9\u7535\u963b\uff0c\u6309\u4e0b\u65f6\u4f4e\u7535\u5e73\u7684\u65b9\u5f0f\u6765\u68c0\u6d4b\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"TF_%E8%AF%BB%E5%8D%A1%E5%99%A8\"><\/span><strong>TF \u8bfb\u5361\u5668<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-tf-card.png\" alt=\"esp32-hat-schematic-tf-card\" style=\"zoom:50%;\" \/><br \/>\n<img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-render-tf-card.png\" alt=\"esp32-hat-render-tf-card.\" style=\"zoom:50%;\" \/><\/p>\n<p>\u4e4b\u524d\u505a\u7684 ESP32-S3 \u6a21\u5757\u867d\u7136\u9009\u62e9\u4e86 N16R8 \u578b\u53f7\uff0c \u62e5\u6709 16MB Flash\uff0c\u4f46\u662f\u5728\u4e00\u4e9b\u9700\u8981\u5927\u5bb9\u91cf\u5b58\u50a8\u7684\u4f7f\u7528\u573a\u666f\uff0c16MB \u5b58\u50a8\u8fd8\u662f\u4e0d\u592a\u591f\u7528\uff0c\u56e0\u6b64\u5f15\u5165\u4e86 TF \u8bfb\u5361\u5668\u6a21\u5757\uff0c\u8fd9\u6837\u53ef\u4ee5\u968f\u610f\u6269\u5c55\u5b58\u50a8\u5927\u5c0f\uff0c\u5728\u8bfb\u5199\u5e93\u517c\u5bb9\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u6269\u5c55\u5230 64G \u7b49\u3002<\/p>\n<p>\u4f7f\u7528 SdFat \u5e93\u5373\u53ef\u5b8c\u6210 FAT16\u3001FAT32 \u4ee5\u53ca exFAT \u5206\u533a\u6587\u4ef6\u7684\u8bfb\u53d6\u548c\u5199\u5165\u3002<\/p>\n<p>TF \u8bfb\u5361\u5668\u6a21\u5757\u4f7f\u7528 SPI \u8fde\u63a5\u5230 ESP32-S3\uff0c\u5728 40MHz \u7684\u901f\u7387\u4e0b\uff0c\u8bfb\u5199\u901f\u5ea6\u53ef\u4ee5\u5230\u8fbe 1MB\/s \u5de6\u53f3\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5927\u591a\u573a\u666f\u7684\u8bfb\u5199\u901f\u7387\u8981\u6c42\u4e86\u3002<\/p>\n<p><em>\u6ce8\uff1a\u8bfb\u5199\u901f\u5ea6\u6d4b\u8bd5\u53c2\u8003 <a href=\"https:\/\/esp32.com\/viewtopic.php?t=26152\">https:\/\/esp32.com\/viewtopic.php?t=26152<\/a><\/em><\/p>\n<h4><span class=\"ez-toc-section\" id=\"%E7%94%B5%E6%B1%A0%E7%94%B5%E5%8E%8B_ADC\"><\/span><strong>\u7535\u6c60\u7535\u538b ADC<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-battery-adc.png\" alt=\"esp32-hat-schematic-battery-adc\" style=\"zoom:50%;\" \/><br \/>\n<img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-battery-adc.png\" alt=\"esp32-hat-schematic-battery-adc\" style=\"zoom:50%;\" \/><\/p>\n<p>\u6269\u5c55\u677f\u63d0\u4f9b\u4e86\u4e00\u4e2a PH 2.0 \u63a5\u53e3\uff0c\u7528\u6765\u8fde\u63a5\u7535\u6c60\uff0c\u4f46\u662f\u56e0\u4e3a\u7535\u6c60\u4f9b\u7535\u9700\u8981\u989d\u5916\u8865\u5145\u5145\u653e\u7535\u7535\u8def\uff0c\u4f1a\u589e\u52a0\u6269\u5c55\u677f\u590d\u6742\u5ea6\uff0c\u56e0\u6b64\u8fd9\u91cc\u4ec5\u4fdd\u7559 ADC \u80fd\u529b\uff0c\u4e0d\u63d0\u4f9b\u4f7f\u7528\u7535\u6c60\u7ed9 ESP32-S3 \u5f00\u53d1\u677f\u4f9b\u7535\u7684\u80fd\u529b\u3002<\/p>\n<p>\u901a\u8fc7\u8fd9\u4e2a\u63a5\u53e3\u8fde\u63a5\u7535\u6c60\u540e\uff0c\u5373\u53ef\u4f7f\u7528 ESP32-S3 \u7684 ADC \u6765\u8bfb\u53d6\u7535\u6c60\u7535\u538b\uff0c\u8fd9\u91cc\u4f7f\u7528\u4e86\u4e24\u4e2a 100K \u7535\u963b\u8fdb\u884c\u5206\u538b\uff0c\u56e0\u6b64\u5b9e\u9645\u7535\u538b\u9700\u8981\u901a\u8fc7\u4e58\u4ee5 2 \u6765\u83b7\u53d6\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%BE%93%E5%87%BA%E6%A8%A1%E5%9D%97\"><\/span>\u8f93\u51fa\u6a21\u5757<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"LCD_%E5%B1%8F%E5%B9%95\"><\/span><strong>LCD \u5c4f\u5e55<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-tft-lcd.png\" alt=\"esp32-hat-schematic-tft-lcd\" style=\"zoom:50%;\" \/><br \/>\n<img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-render-tft-lcd.png\" alt=\"esp32-hat-render-tft-lcd\" style=\"zoom:50%;\" \/><\/p>\n<p>\u5c4f\u5e55\u662f\u79fb\u52a8\u8bbe\u5907\u4e0e\u7528\u6237\u4ea4\u4e92\u6700\u5e38\u89c1\u7684\u5916\u8bbe\u4e86\uff0c\u8fd9\u91cc\u91c7\u7528\u5e38\u89c1\u7684 ST7789V \u9a71\u52a8 TFT LCD \u5c4f\u5e55\uff0c\u4f7f\u7528 SPI \u603b\u7ebf\u901a\u4fe1\u3002<\/p>\n<p>ESP32-S3 \u5728\u4e0d\u4f7f\u7528 IOMUX \u7684\u60c5\u51b5\u4e0b\uff0cSPI \u6700\u9ad8\u53ef\u4ee5\u8fd0\u884c\u5728 80MHz\uff0c\u5bf9\u4e8e\u5e38\u89c1 320x240 \u5206\u8fa8\u7387\u7684 LCD \u6765\u8bf4\uff0c\u5728\u4f7f\u7528 16 \u4f4d\u8272\u6df1\u7684\u60c5\u51b5\u4e0b\uff0c\u5168\u5c4f\u5237\u65b0\u53ef\u4ee5\u8dd1\u5230 60 FPS\uff0c\u53ef\u4ee5\u6ee1\u8db3\u7edd\u5927\u591a\u6570\u573a\u666f\u7684\u4f7f\u7528\u4e86\u3002<\/p>\n<p>\u5176\u4e2d\u901a\u8fc7 LCD_BL \u5f15\u811a\uff0c\u53ef\u4ee5\u4f7f\u7528 PWM \u6765\u63a7\u5236 LCD \u80cc\u5149\u7684\u4eae\u5ea6\uff0c\u4f8b\u5982\u5728 Arduino \u4e2d\u53ef\u4ee5\u901a\u8fc7 analogWrite(LCD_BL, 128) \u6765\u8bbe\u7f6e LCD \u80cc\u5149\u4eae\u5ea6\u4e3a\u4e00\u534a\u4eae\u5ea6\u3002<\/p>\n<p>\u6269\u5c55\u677f\u901a\u8fc7 2.54mm \u6392\u9488\u5ea7\u6765\u8fde\u63a5 LCD \u5c4f\u5e55\uff0c\u5f15\u811a\u987a\u5e8f\u6309\u6dd8\u5b9d\u4e0a\u5e38\u89c1 ST7789V \u6a21\u5757\u5f15\u811a\u987a\u5e8f\u6765\u5b9a\u4e49\uff0c\u5f15\u811a\u987a\u5e8f\u4ece\u5de6\u5230\u53f3\u4e3a\uff1a<\/p>\n<p>GND VCC SCL SDA RST DC CS BL<\/p>\n<p>\u4e3a\u4e86\u4fbf\u4e8e\u53cd\u5411\u5b89\u88c5\u5c4f\u5e55\uff0c\u6269\u5c55\u677f\u4e5f\u63d0\u4f9b\u4e86\u5f15\u811a\u987a\u5e8f\u76f8\u540c\uff0c\u65b9\u5411\u76f8\u53cd\u7684\u6392\u9488\u5ea7\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"096%E5%AF%B8_12864_OLED\"><\/span><strong>0.96\u5bf8 12864 OLED<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-oled-12864.png\" alt=\"esp32-hat-schematic-oled-12864\" style=\"zoom:50%;\" \/><br \/>\n<img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-render-oled-12864.png\" alt=\"esp32-hat-render-oled-12864\" style=\"zoom:50%;\" \/><\/p>\n<p>0.96\u5bf8 12864 OLED \u4e5f\u662f\u5e38\u89c1\u7684\u5c4f\u5e55\u5916\u8bbe\uff0c\u5728\u4e00\u4e9b\u8981\u6c42\u4e0d\u9ad8\u7684\u573a\u5408\uff0c\u4f8b\u5982\u663e\u793a\u5c11\u91cf\u72b6\u6001\u7b49\uff0c\u662f\u4e00\u4e2a\u6bd4\u8f83\u597d\u7684\u9009\u62e9\uff0c\u5e76\u4e14\u529f\u8017\u76f8\u6bd4 LCD \u8981\u4f4e\u4e0d\u5c11\u3002<\/p>\n<p>\u6269\u5c55\u677f\u4f7f\u7528 I2C \u63a5\u53e3\u7684\u5c4f\u5e55\u6a21\u5757\uff0c\u63d0\u4f9b 2.54mm \u6392\u9488\u5ea7\u6765\u8fde\u63a5\uff0c\u5f15\u811a\u987a\u5e8f\u4e5f\u6309\u6dd8\u5b9d\u4e0a\u5e38\u89c1\u7684\u6a21\u5757\u6765\u5b9a\u4e49\uff0c\u5f15\u811a\u987a\u5e8f\u4e3a\uff1aGND V3.3 SCL SDA\u3002<\/p>\n<p>\u5bf9\u4e8e\u5355\u8272 OELD \u6765\u8bf4\uff0cI2C \u7684\u9891\u7387\u8dd1\u5728 Fast \u6a21\u5f0f 400Kbits\/s \u7684\u901f\u7387\u4e0b\uff0c\u5373\u53ef\u83b7\u5f97 48 FPS \u7684\u5237\u65b0\u901f\u5ea6\uff0c\u4e5f\u57fa\u672c\u6ee1\u8db3\u5927\u591a\u6570\u573a\u666f\u7684\u4f7f\u7528\u9700\u6c42\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"WS2812_LED\"><\/span><strong>WS2812 LED<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-ws2812.png\" alt=\"esp32-hat-schematic-ws2812\" style=\"zoom:50%;\" \/><br \/>\n<img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-render-ws2812.png\" alt=\"esp32-hat-render-ws2812\" style=\"zoom:50%;\" \/><\/p>\n<p>WS2812 \u76f8\u6bd4\u4f20\u7edf\u7684 6 \u811a RGB\uff0c\u66f4\u8282\u7701 MCU \u7684 IO\uff0c\u53ea\u9700\u4e00\u6839\u6570\u636e\u7ebf\u5c31\u53ef\u4ee5\u63a7\u5236\u989c\u8272\u548c\u4eae\u5ea6\uff0c\u5e76\u4e14\u591a\u4e2a LED \u8fd8\u53ef\u4ee5\u4e32\u8054\uff0c\u7ec4\u6210 LED \u9635\u5217\uff0c\u5b9e\u73b0\u5404\u79cd\u706f\u5149\u6548\u679c\uff0c\u56e0\u6b64\u6269\u5c55\u677f\u4e5f\u52a0\u5165\u4e86 WS2812 LED \u9635\u5217\u6a21\u5757\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"%E8%9C%82%E9%B8%A3%E5%99%A8\"><\/span><strong>\u8702\u9e23\u5668<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-buzzer.png\" alt=\"esp32-hat-schematic-buzzer\" style=\"zoom:50%;\" \/><br \/>\n<img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-render-buzzer.png\" alt=\"esp32-hat-render-buzzer\" style=\"zoom:50%;\" \/><\/p>\n<p>\u8702\u9e23\u5668\u53ef\u4ee5\u4f5c\u4e3a\u8b66\u544a\u63d0\u793a\u7b49\u7528\u9014\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%80%BB%E7%BA%BF%E6%A8%A1%E5%9D%97\"><\/span>\u603b\u7ebf\u6a21\u5757<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"SPI_%E6%80%BB%E7%BA%BF\"><\/span><strong>SPI \u603b\u7ebf<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>SPI \u603b\u7ebf\u662f\u5e38\u89c1\u7684\u5916\u8bbe\u901a\u4fe1\u603b\u7ebf\uff0c\u5728 ESP32-S3 \u4e2d\u4e0d\u4f7f\u7528 IOMXU \u65f6\u9891\u7387\u53ef\u4ee5\u8fd0\u884c\u5728 80MHz\uff0c\u4f7f\u7528 IOMUX \u65f6\u53ef\u4ee5\u8fd0\u884c\u5728 40MHz\uff0c\u6269\u5c55\u677f\u4e2d\u5206\u522b\u8fde\u63a5\u4e86 LCD \u5c4f\u5e55\u548c TF \u8bfb\u5361\u5668\uff0c\u56e0\u6b64\u6ca1\u6709\u63d0\u4f9b\u989d\u5916\u7684 SPI \u603b\u7ebf\u6392\u9488\u5ea7\u3002<\/p>\n<p>\u5728\u4e0d\u4f7f\u7528 LCD \u5c4f\u5e55\u7684\u60c5\u51b5\u4e0b\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7 LCD \u6392\u9488\u5ea7\u6765\u8fde\u63a5 SPI \u603b\u7ebf\u5916\u8bbe\u3002<\/p>\n<h4><span class=\"ez-toc-section\" id=\"I2C_%E6%80%BB%E7%BA%BF\"><\/span><strong>I2C \u603b\u7ebf<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-schematic-i2c-bus.png\" alt=\"esp32-hat-schematic-i2c-bus\" style=\"zoom:50%;\" \/><br \/>\n<img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-render-i2c-bus.png\" alt=\"esp32-hat-render-i2c-bus\" style=\"zoom:50%;\" \/><\/p>\n<p>\u5e38\u89c1\u7684\u4f20\u611f\u5668\u6a21\u5757\uff0c\u5f88\u591a\u90fd\u662f\u91c7\u7528 I2C \u901a\u4fe1\uff0c\u4f8b\u5982\u6e29\u6e7f\u5ea6\u3001\u6c14\u538b\u3001\u5149\u7167\u5f3a\u5ea6\u7b49\u4f20\u611f\u5668\uff0c\u56e0\u6b64\u6269\u5c55\u677f\u901a\u8fc7 2.54mm \u6392\u9488\u5ea7\u63d0\u4f9b\u4e86 3 \u7ec4 I2C \u63a5\u53e3\u3002<\/p>\n<p>\u53c2\u8003\u6dd8\u5b9d\u4e0a\u7684\u4f20\u611f\u5668\u6a21\u5757\u8bbe\u8ba1\uff0c\u5f15\u811a\u987a\u5e8f\u4f7f\u7528\u4e86\u5e38\u89c1\u7684 V3.3 GND SCL SDA\u3002<\/p>\n<p>\u5982\u679c\u78b0\u5230\u5f15\u811a\u987a\u5e8f\u4e0d\u4e00\u81f4\u7684\u6a21\u5757\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u675c\u90a6\u7ebf\u8fde\u63a5\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E6%9C%80%E7%BB%88_PCB_%E4%BA%A7%E5%93%81\"><\/span>\u6700\u7ec8 PCB \u4ea7\u54c1<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5728\u6253\u6837\u65f6 TF \u8bfb\u5361\u5668\u6a21\u5757\u7684 CMD \u5f15\u811a\u8fde\u63a5\u9519\u8bef\uff0c\u901a\u8fc7\u98de\u7ebf\u89e3\u51b3\u4e86\uff0c\u5f00\u6e90\u9879\u76ee\u4e2d\u7684 PCB \u5df2\u7ecf\u4e3a\u6b63\u786e\u7248\u672c\uff0c\u53ef\u4ee5\u653e\u5fc3\u6253\u6837\u3002<\/p>\n<p>\u8fd9\u91cc\u6f14\u793a\u4e86\u4f7f\u7528 Si7021 \u6a21\u5757\u83b7\u53d6\u5f53\u524d\u6e29\u5ea6\uff0c\u901a\u8fc7 I2C \u603b\u7ebf\u8fdb\u884c\u901a\u4fe1\uff0c\u56e0\u4e3a\u6a21\u5757\u5f15\u811a\u987a\u5e8f\u4e0e\u6269\u5c55\u677f\u5f15\u811a\u987a\u5e8f\u4e0d\u4e00\u81f4\uff0c\u56e0\u6b64\u901a\u8fc7\u675c\u90a6\u7ebf\u91cd\u65b0\u8fde\u63a5\u4e86\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2023\/08\/esp32-hat-pcb-demo.jpeg\" alt=\"ESP32S3\u6269\u5c55\u677f.jpg\" style=\"zoom:50%;\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE\"><\/span>\u5f00\u6e90\u9879\u76ee<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u8fd9\u4e2a\u9879\u76ee\u4e2d\u7684 ESP32-S3 \u5f00\u53d1\u677f\u548c\u6269\u5c55\u677f\u5747\u5df2\u5728\u7acb\u521b\u5f00\u6e90\u5e73\u53f0\u5f00\u6e90\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7acb\u521b EDA \u7f16\u8f91\u67e5\u770b\uff0c\u6216\u8005\u4e0b\u5355 PCB\u3002<\/p>\n<p>\u9879\u76ee\u540d\u79f0\uff1aESP32-S3-WROOM-1 \u5f00\u53d1\u677f<\/p>\n<p>\u9879\u76ee\u94fe\u63a5\uff1a<a href=\"https:\/\/oshwhub.com\/wandaeda\/dan-pian-ji-esp32-s3-kai-fa-ban\">https:\/\/oshwhub.com\/wandaeda\/dan-pian-ji-esp32-s3-kai-fa-ban<\/a><\/p>\n<p>\u8be5\u9879\u76ee\u4e2d\u540c\u65f6\u5305\u542b\u4e86 ESP32-S3 \u6700\u5c0f\u5f00\u53d1\u677f\u548c\u5f53\u524d\u5c55\u793a\u7684\u6269\u5c55\u677f\uff0c\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u5609\u7acb\u521b\u6253\u6837\u670d\u52a1\u4e0b\u5355\u5236\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5b8c\u6210\u4e4b\u524d\u7684 \u300aESP32-S3 \u6700\u5c0f\u5f00\u53d1\u677f\u300b \u4e4b\u540e\uff0c\u60f3\u5230\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\uff0c\u90fd\u662f\u7528  &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/xujiwei.com\/blog\/2023\/08\/esp32-s3-iot-hat-design\/\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":1083,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[262,342,344,345,252,347,346],"_links":{"self":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/1082"}],"collection":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/comments?post=1082"}],"version-history":[{"count":0,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/1082\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media\/1083"}],"wp:attachment":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media?parent=1082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/categories?post=1082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/tags?post=1082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}