{"id":229,"date":"2020-08-16T13:57:22","date_gmt":"2020-08-16T05:57:22","guid":{"rendered":"http:\/\/www.333wen.com\/?p=229"},"modified":"2021-03-16T14:31:20","modified_gmt":"2021-03-16T06:31:20","slug":"stm32-esp-shizhong","status":"publish","type":"post","link":"https:\/\/www.333wen.com\/index.php\/stm32-esp-shizhong\/","title":{"rendered":"\u5929\u6c14\u65f6\u949f\u7f51\u7edc\u65f6\u95f4stm32-esp8266-esp12f\u83b7\u53d6\u5929\u6c14\u65f6\u95f4\u81ea\u52a8\u6821\u51c6\u663e\u793a"},"content":{"rendered":"\n<p>\u672c\u65b9\u6848\u91c7\u7528\u7684\u662fMCU+AT\u6307\u4ee4\u7684\u5f62\u5f0f\u5f00\u53d1\uff0cMCU\u662f\u5927\u5bb6\u6bd4\u8f83\u719f\u6089\u7684\u610f\u6cd5\u534a\u5bfc\u4f53\u516c\u53f8STM32F103C8T6\uff0cWiFi\u6a21\u5757\u4f7f\u7528\u7684\u662f\u5b89\u4fe1\u53efESP-12F\uff0c\u672c\u65b9\u6848\u662f\u4e00\u4e2aDemo\u8bbe\u8ba1\uff0c\u6bd4\u8f83\u7b80\u5355\uff0c\u4ec5\u5b9e\u73b0\u4e86\u529f\u80fd\uff0c\u7b97\u662f\u4e00\u4e2a\u629b\u7816\u5f15\u7389\u5427\uff01<br> <br> \u5148\u4e0a\u89c6\u9891\u6f14\u793a\uff1a https:\/\/www.bilibili.com\/video\/BV1JC4y1t7FF\/ <br> <br> WiFi\u6a21\u5757\u8d44\u6599\u94fe\u63a5\uff1awiki\u70b9ai-thinker\u70b9com\/esp8266<br> <br> STM32F103C8\u82af\u7247\u8d44\u6599\u94fe\u63a5\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/www.stmicroelectronics.com.cn\/content\/st_com\/zh\/products\/microcontrollers-microprocessors\/stm32-32-bit-arm-cortex-mcus\/stm32-mainstream-mcus\/stm32f1-series\/stm32f103\/stm32f103c8.html#overview\" target=\"_blank\">https:\/\/www.stmicroelectronics.c &#8230; 103c8.html#overview<\/a><br> <br> \u786c\u4ef6\u90e8\u5206\uff0c\u7531\u65f6\u949f\u7535\u8def+WiFi\u6a21\u5757+MCU\u6700\u5c0f\u7cfb\u7edf+OLED\u663e\u793a\u5c4f+\u7a33\u538b\u7535\u8def+\u6309\u952e\u7535\u8def\u7ec4\u6210\uff0c\u8fd9\u91cc\u91c7\u7528\u65f6\u949f\u7535\u8def\u662f\u5e0c\u671b\u6a21\u5757\u5728\u65ad\u7f51\u540e\u8fd8\u80fd\u83b7\u53d6\u4e00\u4e2a\u6bd4\u8f83\u7cbe\u51c6\u7684\u65f6\u95f4\uff0c\u5e76\u4e14\u7535\u8def\u8bbe\u8ba1\u4e0a\u589e\u52a0\u4e86\u50a8\u80fd\u7535\u5bb9\u53ef\u4ee5\u5728\u65ad\u7535\u4e00\u4e2a\u6708\u540e\u4fdd\u6301\u65f6\u95f4\u6570\u636e\u4e0d\u4e22\u5931\uff0c\u5f53\u7136\u8fd9\u91cc\u4e5f\u53ef\u4ee5\u7528STM32\u91cc\u9762\u7684RTC\u65f6\u949f\uff1bOLED\u663e\u793a\u5c4f\u91c7\u7528\u7684\u662f\u88f8\u5c4f\u8bbe\u8ba1\uff0c\u4f7f\u6574\u4f53\u7535\u8def\u677f\u4e00\u4f53\u5316\u6548\u679c\u597d\u4e9b\uff1b\u5176\u4ed6\u7535\u8def\u90fd\u662f\u53c2\u8003\u5f00\u53d1\u677for\u786c\u4ef6\u624b\u518c\u4e0a\u8bbe\u8ba1\u7684\uff1b\u786c\u4ef6\u8bbe\u8ba1\u8f6f\u4ef6\u91c7\u7528\u7684\u662f Altium Designer (13.0)\uff0c\u539f\u7406\u56fe\u6982\u7565\u56fe\u5982\u4e0b\u56fe\u6240\u793a\uff1a<br> <br> <br> <br> <br> \u5b9e\u7269\u56fe\u5982\u4e0b\u56fe\u6240\u793a\uff1a\uff08\u7535\u8def\u677f\u662f\u627e\u5382\u5bb6\u6253\u6837\u7684\uff0c\u5143\u5668\u4ef6\u662f\u7eaf\u4eba\u5de5\u624b\u710a\uff09<br> <br> <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"733\" height=\"531\" src=\"http:\/\/www.333wen.com\/wp-content\/uploads\/2020\/08\/image.png\" alt=\"\" class=\"wp-image-230\" srcset=\"https:\/\/www.333wen.com\/wp-content\/uploads\/2020\/08\/image.png 733w, https:\/\/www.333wen.com\/wp-content\/uploads\/2020\/08\/image-600x435.png 600w, https:\/\/www.333wen.com\/wp-content\/uploads\/2020\/08\/image-300x217.png 300w\" sizes=\"(max-width: 733px) 100vw, 733px\" \/><\/figure>\n\n\n\n<p><br> <br> <br> \u8f6f\u4ef6\u90e8\u5206\uff0c\u7531\u5e95\u5c42\u9a71\u52a8+WiFi\u8054\u7f51+\u8c03\u7528API\u63a5\u53e3\u5e76\u89e3\u6790\u6570\u636e+OLED\u663e\u793a\u7ec4\u6210\uff1b\u9996\u5148\u5206\u6790\u4e00\u6ce2\uff0c\u8fd9\u91cc\u9762\u7528\u5230\u4e86MCU\u7684USART\u3001I2C*2\u3001GPIO*2\u5f15\u811a\u8d44\u6e90\uff0c\u7136\u540e\u5bf9\u5e94\u53bb\u627e\u76f8\u5173\u7c7b\u4f3c\u7684\u4f8b\u7a0b\uff0c\u65e2\u7136\u5df2\u7ecf\u6709\u8f6e\u5b50\u4e86\uff0c\u4e3a\u4f55\u8fd8\u8981\u82b1\u65f6\u95f4\u53bb\u9020\u8f6e\u5b50\uff0c\u5f53\u7136\u662f\u76f4\u63a5\u6539\u4f8b\u7a0b\u6765\u7684\u8212\u670d\u3002\u8fd9\u91cc\u5f00\u53d1\u65b9\u5f0f\u91c7\u7528\u7684\u662f\u5e93\u51fd\u6570\u5f00\u53d1\uff0c\u7528\u7684\u662fSTM32\u7684\u6807\u51c6\u5e93\uff0c\u5bf9\u5e94\u627e\u5230\u4e86OLED\u663e\u793a\u5c4f\u7684\u9a71\u52a8\u8d44\u6599\u3001PCF8563\u7684\u9a71\u52a8\u8d44\u6599\u3001WiFi\u6a21\u7ec4\u7684\u9a71\u52a8\u8d44\u6599\u3001\u6309\u952e\u8f93\u5165\u7684\u9a71\u52a8\u8d44\u6599\uff1b\u5c06\u5b83\u4eec\u6574\u5408\u5230\u4e00\u4e2a\u5de5\u7a0b\u91cc\u9762\uff0c\u7136\u540e\u66f4\u6539\u91cc\u9762\u7684\u5f15\u811a\u914d\u7f6e\u7b49\uff0c\u5c31\u5b8c\u6210\u4e86\u6574\u4e2a\u8bbe\u8ba1\u7684\u5e95\u5c42\u9a71\u52a8\u3002<br> <br> WiFi\u8054\u7f51\uff0c\u8fd9\u91ccWiFi\u662f\u8bbe\u7f6e\u6210\u4e86STA\u6a21\u5f0f\uff08STA\u6a21\u5f0f\u662f\u5565\uff0c\u53ef\u81ea\u884c\u95ee\u5ea6\u5a18\uff09\uff0c\u7136\u540e\u8fde\u63a5\u624b\u673a\u5f00\u7684\u70ed\u70b9\uff08\u6ce8\u610f\u624b\u673a\u5fc5\u987b\u8981\u80fd\u8fde\u63a5\u4e0a\u516c\u7f51\uff0c\u5373\u6211\u4eec\u5e38\u7528\u7684\u4e92\u8054\u7f51\uff09\u3002\u5177\u4f53\u5982\u4f55\u8bbe\u7f6e\u53ef\u4ee5\u53c2\u8003WiFi\u6a21\u5757\u7684AT\u6307\u4ee4\u96c6\uff0cAT\u6307\u4ee4\u96c6\u5728\u4e0a\u9762WiFi\u6a21\u5757\u8d44\u6599\u91cc\u9762\u6709\u3002\u624b\u673a\u5f00\u7684WiFi\u70ed\u70b9\u7684\u8d26\u53f7\u5bc6\u7801\u9700\u8981\u4e8b\u5148\u77e5\u9053\uff0c\u5e76\u5199\u5165\u5728\u7a0b\u5e8f\u91cc\u9762\uff0c\u540e\u7eed\u5982\u679c\u9700\u8981\u66f4\u6539\u70ed\u70b9\u7684\u8d26\u53f7\u5bc6\u7801\uff0c\u5c31\u9700\u8981\u66f4\u6539\u7a0b\u5e8f\u3002<br> <br> \u5929\u6c14\u548c\u65f6\u95f4\u66f4\u65b0\uff0c\u5373\u8c03\u7528API\u63a5\u53e3\u5e76\u89e3\u6790\u6570\u636e\uff0c\u8fd9\u91cc\u7528\u5230\u4e86\u4e24\u4e2aAPI\u63a5\u53e3\uff0c\u7b2c\u4e00\u4e2a\u662f\u5fc3\u77e5\u5929\u6c14\u7684\u5929\u6c14\u5b9e\u51b5\u6570\u636e\u83b7\u53d6\uff0c\u56e0\u4e3a\u662f\u514d\u8d39\u7248\u6240\u4ee5\u53ea\u80fd\u83b7\u53d6\u5230\u5929\u6c14\u73b0\u8c61\u548c\u6c14\u6e29\u4e24\u9879\u6570\u636e\uff1b\u7b2c\u4e8c\u4e2a\u662fNowapi\u7684\u5317\u4eac\u65f6\u95f4\u6570\u636e\u83b7\u53d6\u3002\u56e0\u4e3a\u7528\u5230\u7684\u4e24\u4e2aAPI\u63a5\u53e3\u662f\u96b6\u5c5e\u4e8e\u4e24\u4e2a\u4e0d\u540c\u7684\u670d\u52a1\u5668\uff0c\u6240\u4ee5\u7a0b\u5e8f\u4e0a\u9700\u8981\u8fdb\u884c\u5207\u6362\uff0c\u8fde\u5b8c\u8fd9\u4e2a\u670d\u52a1\u5668\u540e\u9700\u8981\u65ad\u5f00\u8fde\u53e6\u4e00\u4e2a\u670d\u52a1\u5668\uff0c\u6bd4\u8f83\u9ebb\u70e6\u3002\u540e\u9762\u6211\u53d1\u73b0\u5176\u5b9eNowapi\u91cc\u9762\u5c31\u6709\u5929\u6c14\u6570\u636e\u53ef\u4ee5\u83b7\u53d6\uff0c\u5b8c\u5168\u53ef\u4ee5\u901a\u8fc7\u53ea\u8fde\u63a5\u8fd9\u4e2a\u670d\u52a1\u5668\u5c31\u5b9e\u73b0\u5929\u6c14\u548c\u65f6\u95f4\u6570\u636e\u7684\u66f4\u65b0\u3002\u5b9e\u73b0\u65b9\u6cd5\u53c2\u8003\u4e0b\u9762\u7684\u7f51\u5740\uff0c\u5199\u6bd4\u8f83\u8be6\u7ec6\u3002<br> <br> \u5fc3\u77e5\u5929\u6c14\uff1adocs\u70b9seniverse\u70b9com\/api\/weather\/now.html\u3001\u670d\u52a1\u5668IP116.62.81.138\uff08\u57df\u540dapi.seniverse.com\uff09\u3001\u9ed8\u8ba4\u7aef\u53e380<br> <br> Nowapi\uff1awww\u70b9nowapi\u70b9com\/api\/life.time\u3001\u670d\u52a1\u5668IP103.205.4.43\uff08\u57df\u540dapi.k780.com\uff09\u3001\u9ed8\u8ba4\u7aef\u53e380<br> <br> \u89e3\u6790\u6570\u636e\u7528\u7684\u662f\u6bd4\u8f83\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u9700\u8981\u89e3\u6790\u7684\u6570\u636e\u91cf\u4e0d\u5927\uff0c\u6240\u4ee5\u5e76\u6ca1\u6709\u79fb\u690dcjson\uff0c\u76f4\u63a5\u7528strtok\u51fd\u6570\u786c\u89e3\u3002<br> <br> OLED\u663e\u793a\uff0cOLED\u663e\u793a\u7528\u7684\u662fI2C\u63a5\u53e3\uff0c\u7136\u540e\u7ed9\u7684\u4f8b\u7a0b\u53ea\u6709\u5e38\u7528\u7684\u6807\u70b9\u7b26\u53f7\u548c26\u4e2a\u82f1\u6587\u5b57\u6bcd\u7684\u5b57\u5e93\uff0c\u5982\u679c\u9700\u8981\u6c49\u5b57\u8fd8\u9700\u8981\u81ea\u5df1\u6dfb\u52a0\u5b57\u5e93\uff0c\u4e00\u822c\u662f\u7528\u5230\u4ec0\u4e48\u6c49\u5b57\u5c31\u6dfb\u52a0\u4ec0\u4e48\u6c49\u5b57\u7684\u5b57\u5e93\uff0c\u7136\u540e\u7528\u4f8b\u7a0b\u91cc\u9762\u7ed9\u7684\u529f\u80fd\u51fd\u6570\u53bb\u5b9e\u73b0\u663e\u793a\u3002<br> <br> \u663e\u793a\u5c4f\u8d44\u6599\uff1a<a rel=\"noreferrer noopener\" href=\"http:\/\/pan.baidu.com\/s\/1dFri9Vz\" target=\"_blank\">http:\/\/pan.baidu.com\/s\/1dFri9Vz<\/a><br> <br> \u4e0b\u56fe\u662f\u7528\u5230\u7684\u6240\u6709.c\u6587\u4ef6\uff08\u9664\u5e93\u51fd\u6570\u4e4b\u5916\uff09<br> <br> <br> <br> <br> bsp_usart1.c\u662f\u7528\u6765\u4e32\u53e3\u8c03\u8bd5\u4f7f\u7528\uff0c\u53ef\u4ee5\u6253\u5370\u5728\u7535\u8111\u4e32\u53e3\u8c03\u8bd5\u52a9\u624b\u4e0a\u663e\u793a\uff1bbsp_SysTick.c\u662f\u7528\u6765\u751f\u6210\u7cbe\u51c6\u7684\u5ef6\u65f6\u51fd\u6570\uff0c\u7528\u4e8eI2C\u901a\u8baf\u7b49\u5bf9\u65f6\u5e8f\u654f\u611f\u7684\u63a5\u53e3\uff1bbsp_esp8266.c\u91cc\u9762\u662f\u5bf9WiFi\u6a21\u5757\u7684\u4e00\u4e9b\u521d\u59cb\u5316\u914d\u7f6e\u548cWiFi\u7684\u529f\u80fd\u51fd\u6570\uff1bCommon.c\u91cc\u9762\u662f\u4e00\u4e9b\u8f85\u52a9\u51fd\u6570\uff1btest.c\u91cc\u9762\u662f\u5b9e\u73b0WiFi\u914d\u7f51\u5e94\u7528\u548cAPI\u63a5\u53e3\u8c03\u7528\u53ca\u89e3\u6790\uff1boled.c\u91cc\u9762\u663e\u793a\u5c4f\u7684\u521d\u59cb\u5316\u914d\u7f6e\u548c\u663e\u793a\u529f\u80fd\u51fd\u6570\uff1bbsp_pcf8563.c\u91cc\u9762\u662f\u65f6\u949f\u82af\u7247\u7684\u521d\u59cb\u5316\u914d\u7f6e\u548c\u8bfb\u5199\u65f6\u95f4\u529f\u80fd\u51fd\u6570\uff1bbsp_key.c\u91cc\u9762\u662f\u6309\u952e\u7684\u521d\u59cb\u5316\u914d\u7f6e\u3001\u6309\u952e\u626b\u63cf\u529f\u80fd\u51fd\u6570\u548c\u9759\u6001\u5185\u5bb9\u663e\u793a\u51fd\u6570\uff1bbsp_TiMbase.c\u91cc\u9762\u662f\u5b9a\u65f6\u5668\u51fd\u6570\uff0c\u8fd9\u91cc\u4e3a\u4ec0\u4e48\u7528\u5230\u5b9a\u65f6\u5668\uff0c\u56e0\u4e3a\u4e00\u822c\u5929\u6c14\u548c\u65f6\u95f4\u6570\u636e\u5237\u65b0\u7684\u9891\u7387\u4e0d\u4f1a\u592a\u5feb\uff0c\u8fd9\u91cc\u8bbe\u5b9a\u7684\u662f5\u5206\u949f\u66f4\u65b0\u4e00\u6b21\uff0c\u90a3\u4e48\u8fd9\u91cc\u5c31\u9700\u8981\u7528\u5230\u5b9a\u65f6\u5668\u3002<br> <br> \u6ce8\u610f\uff1aapi\u70b9k780\u70b9com\/?app=life.time&amp;appkey=41298&amp;sign=eb689df06015c995b73ae1f60c133a77&amp;format=json \uff0c\u91cc\u9762\u7684appkey=41298\u548csign=eb689df06015c995b73ae1f60c133a77\uff0c\u6700\u597d\u66f4\u6362\u6210\u81ea\u5df1\u7684appkey\u548csign\uff08\u7f51\u5740\u4e0a\u6ce8\u518c\u8d26\u53f7\uff09&nbsp;&nbsp;&#8220;GET api\u70b9seniverse\u70b9com\/v3\/weather\/now.json?key=SO0c3M39I7uTr9XjF&amp;location=guangzhou&amp;language=zh-Hans&amp;unit=c\\n&#8221;\uff0c\u91cc\u9762\u7684key=SO0c3M39I7uTr9XjF\u548clocation=guangzhou\uff0c\u6700\u597d\u6362\u6210\u81ea\u5df1\u7684Key\u548c\u57ce\u5e02\uff08\u7f51\u5740\u4e0a\u6ce8\u518c\u8d26\u53f7\uff09<br> <br> \u5355\u7247\u673a\u6e90\u7a0b\u5e8f\u5982\u4e0b:<\/p>\n\n\n\n\n\n<ol class=\"wp-block-list\"><li>#include &#8220;stm32f10x.h&#8221;<\/li><li>#include &#8220;bsp_usart1.h&#8221;<\/li><li>#include &#8220;bsp_SysTick.h&#8221;<\/li><li>#include &#8220;bsp_esp8266.h&#8221;<\/li><li>#include &#8220;test.h&#8221;<\/li><li>#include &#8220;oled.h&#8221;<\/li><li>#include &#8220;bsp_pcf8563.h&#8221;<\/li><li>#include &#8220;bsp_key.h&#8221;<\/li><li>#include &#8220;bsp_TiMbase.h&#8221;<\/li><li>&nbsp;<\/li><li>\/**<\/li><li>&nbsp;&nbsp;* @brief&nbsp;&nbsp;\u4e3b\u51fd\u6570<\/li><li>&nbsp;&nbsp;* @param&nbsp;&nbsp;\u65e0<\/li><li>&nbsp;&nbsp;* @retval \u65e0<\/li><li>&nbsp;&nbsp;*\/<\/li><li>int main ( void )<\/li><li>{<\/li><li>&nbsp;<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; SysTick_Init();&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;\/\/\u914d\u7f6e SysTick \u4e3a 1ms \u4e2d\u65ad\u4e00\u6b21<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; Delay_us(100000);&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \/\/\u5ef6\u65f6100ms\u7b49\u5f85\u7535\u538b\u7a33\u5b9a<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; \/* \u521d\u59cb\u5316 *\/<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp;<\/li><li>&nbsp;&nbsp;USARTx_Config();&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;\/\/\u521d\u59cb\u5316\u4e32\u53e31<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; ESP8266_Init();&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;\/\/\u521d\u59cb\u5316WiFi\u6a21\u5757\u4f7f\u7528\u7684\u63a5\u53e3\u548c\u5916\u8bbe<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; Pcf8563_Gpio_Init();&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;\/\/\u65f6\u949f\u82af\u7247\u521d\u59cb\u5316<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp;<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; Pcf8563_SetTime();&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\/\/\u8bbe\u7f6e\u521d\u59cb\u65f6\u95f4<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp;<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; Key_GPIO_Config();&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;\/\/\u6309\u952e\u521d\u59cb\u5316<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; OLED_Init();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/\/\u521d\u59cb\u5316OLED&nbsp;&nbsp;<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; OLED_Clear();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;\/\/\u6e05\u5c4f<\/li><li>&nbsp;<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp;<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; BASIC_TIM_Init();<\/li><li>&nbsp;<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; WIFI_Config_Show();<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp;<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp; printf ( &#8220;\\r\\nWecome!\\r\\n&#8221; );&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;\/\/\u6253\u5370\u6d4b\u8bd5\u4f8b\u7a0b\u63d0\u793a\u4fe1\u606f<\/li><li>&nbsp;<\/li><li>&nbsp;&nbsp;ESP8266_StaTcpClient_UnvarnishTest();&nbsp; &nbsp;&nbsp;&nbsp;\/\/\u5efa\u7acbTCP\/IP\u8fde\u63a5<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp;<\/li><li>&nbsp;&nbsp;while ( 1 );<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp;<\/li><li>&nbsp; &nbsp; &nbsp; &nbsp;<\/li><li>}<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"506\" height=\"95\" src=\"http:\/\/www.333wen.com\/wp-content\/uploads\/2020\/08\/image-1.png\" alt=\"\" class=\"wp-image-231\" srcset=\"https:\/\/www.333wen.com\/wp-content\/uploads\/2020\/08\/image-1.png 506w, https:\/\/www.333wen.com\/wp-content\/uploads\/2020\/08\/image-1-300x56.png 300w\" sizes=\"(max-width: 506px) 100vw, 506px\" \/><figcaption><br><\/figcaption><\/figure>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background has-luminous-vivid-orange-background-color\" href=\"http:\/\/git.333wen.com\/#\/Detial?goodsId=8\">\u8d5e\u52a919.90\u5143\u83b7\u5f97\u6e90\u7801<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u65b9\u6848\u91c7\u7528\u7684\u662fMCU+AT\u6307\u4ee4\u7684\u5f62\u5f0f\u5f00\u53d1\uff0cMCU\u662f\u5927\u5bb6\u6bd4\u8f83\u719f\u6089\u7684\u610f\u6cd5\u534a\u5bfc\u4f53\u516c\u53f8STM32F103C8T6\uff0cWi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-229","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.333wen.com\/index.php\/wp-json\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.333wen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.333wen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.333wen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.333wen.com\/index.php\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":6,"href":"https:\/\/www.333wen.com\/index.php\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":349,"href":"https:\/\/www.333wen.com\/index.php\/wp-json\/wp\/v2\/posts\/229\/revisions\/349"}],"wp:attachment":[{"href":"https:\/\/www.333wen.com\/index.php\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.333wen.com\/index.php\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.333wen.com\/index.php\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}