{"id":86787,"date":"2026-07-29T08:48:36","date_gmt":"2026-07-29T00:48:36","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/86787.html"},"modified":"2026-07-29T08:48:36","modified_gmt":"2026-07-29T00:48:36","slug":"stm32%e5%8d%95%e7%89%87%e6%9c%ba%e6%a0%87%e5%87%86%e5%ba%93-gpio%e7%82%b9%e7%81%af%e4%b8%8e%e6%8c%89%e9%94%ae%e8%be%93%e5%85%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/86787.html","title":{"rendered":"STM32\u5355\u7247\u673a\u6807\u51c6\u5e93\u2014GPIO\u70b9\u706f\u4e0e\u6309\u952e\u8f93\u5165"},"content":{"rendered":"<h4>\u70b9\u706f<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"430\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729004834-6a694de2c9516.png\" width=\"670\" \/><\/p>\n<p>\u5982\u4e0a\u56fe&#xff0c;\u7535\u6d41\u65b9\u5411\u90fd\u4e3a\u4ece\u53f3\u5411\u5de6&#xff0c;\u5373\u53f3\u8fb9\u7535\u538b\u9ad8\u4e8e\u5de6\u8fb9\u7535\u538b\u65f6\u7535\u8def\u5bfc\u901a&#xff0c;LED\u706f\u4eae\u3002\u6b64\u7535\u8def\u9700\u8981\u6ce8\u610f\u6700\u5927\u8fc7\u6d41\u4e0d\u80fd\u8d85\u8fc7LED\u548c\u7535\u963b\u7684\u6700\u5927\u8fc7\u6d41\u503c\u3002\u5047\u8bbeLED\u538b\u964d\u4e3a1.8V&#xff0c;\u6211\u4eec\u4f7f\u4ed6\u7684\u8fc7\u6d41\u4e0d\u8d85\u8fc75mA\u3002\u5373&#xff08;\u9ad8\u538b-\u538b\u964d&#xff09;\/5mA&#061;\u6700\u5c0f\u963b\u503c\u3002&#xff08;3.3V-1.8V&#xff09;\/5mA&#061;300R\u3002\u7535\u963b\u8981\u5927\u4e8e300R,\u9664\u975e\u7535\u8def\u9700\u8981&#xff0c;3.3V\u65f6\u4e00\u822c\u7535\u963b\u503c\u90fd\u4e3a1K\u6216\u800510K\u7b49\u3002<\/p>\n<h4>0805\u5c01\u88c5LED\u7684\u8fc7\u6d41\u9608\u503c<\/h4>\n<p>\u5e38\u89c4\u5c0f\u529f\u73870805\u8d34\u7247LED\u7684\u989d\u5b9a\u5de5\u4f5c\u7535\u6d41\u4e3a20mA&#xff0c;\u200c\u8d85\u8fc725mA\u5c31\u5c5e\u4e8e\u8fc7\u6d41\u72b6\u6001\u200c&#xff0c;\u7edd\u5bf9\u6700\u5927\u7535\u6d41\u4e0d\u5efa\u8bae\u8d85\u8fc730mA\u3002<br \/>\n\u957f\u671f\u8fc7\u6d41\u4f1a\u5bfc\u81f4LED\u53d1\u70ed\u4e25\u91cd\u3001\u5149\u8870\u901f\u5ea6\u5927\u5e45\u52a0\u5feb&#xff0c;\u5bff\u547d\u6025\u5267\u7f29\u77ed&#xff1b;\u77ed\u65f6\u95f4\u77ac\u65f6\u8fc7\u6d41\u53ef\u627f\u53d7100mA\u5de6\u53f3&#xff08;\u6301\u7eed\u65f6\u95f4\u9700\u63a7\u5236\u57280.1ms\u4ee5\u5185&#xff09;&#xff0c;\u4f46\u4e0d\u5efa\u8bae\u5e38\u89c4\u8bbe\u8ba1\u4e2d\u4f7f\u7528\u8be5\u53c2\u6570\u3002\u65e5\u5e38\u505aSTM32\u8fd9\u7c7bMCU\u7684\u6307\u793a\u706f\u9a71\u52a8\u65f6&#xff0c;\u901a\u5e38\u5c06\u5de5\u4f5c\u7535\u6d41\u63a7\u5236\u57285~10mA\u5c31\u53ef\u4ee5\u83b7\u5f97\u8db3\u591f\u7684\u4eae\u5ea6&#xff0c;\u65e2\u5b89\u5168\u53c8\u80fd\u964d\u4f4eIO\u53e3\u7684\u8d1f\u8f7d\u538b\u529b\u3002<\/p>\n<h4>0805\u5c01\u88c5LED\u7684\u6b63\u5411\u538b\u964d<\/h4>\n<p>\u538b\u964d\u6570\u503c\u968f\u53d1\u5149\u989c\u8272\u4e0d\u540c\u6709\u660e\u663e\u533a\u5206&#xff0c;\u5e38\u89c4\u53c2\u6570\u8303\u56f4\u5982\u4e0b&#xff1a;<br \/>\n\u7ea2\u3001\u9ec4\u3001\u6a59\u8272\u7cfb&#xff1a;\u6b63\u5411\u538b\u964d1.8V~2.2V&#xff0c;\u5178\u578b\u503c\u7ea62.0V<br \/>\n\u84dd\u3001\u7eff\u3001\u767d\u3001\u7d2b\u8272\u7cfb&#xff1a;\u6b63\u5411\u538b\u964d2.8V~3.6V&#xff0c;\u5178\u578b\u503c\u7ea63.0V<br \/>\n\u53cc\u8272\/\u5168\u5f69\u76840805LED\u5219\u4f1a\u5bf9\u5e94\u4e0d\u540c\u989c\u8272\u7684\u4e24\u8def\u538b\u964d\u53c2\u6570&#xff0c;\u6bd4\u5982\u7ea2\u7eff\u53cc\u8272\u7684\u7ea2\u5149\u901a\u9053\u538b\u964d2.0~2.2V\u3001\u7eff\u5149\u901a\u9053\u538b\u964d3.0~3.2V\u3002<\/p>\n<p>\u6700\u5e38\u89c1\u76840805\u7535\u963b&#xff0c;\u6807\u51c6\u989d\u5b9a\u529f\u7387\u4e3a \u200c1\/8W&#xff08;0.125W&#xff09;<\/p>\n<\/p>\n<h4>\u7a0b\u5e8f\u4e3e\u4f8b<\/h4>\n<p>\/\/\u7ba1\u811a\u521d\u59cb\u5316<br \/>\nvoid LED_GPIO_Config(void)<br \/>\n{<br \/>\n    \/*\u5b9a\u4e49\u4e00\u4e2aGPIO_InitTypeDef\u7c7b\u578b\u7684\u7ed3\u6784\u4f53*\/<br \/>\n    GPIO_InitTypeDef GPIO_InitStructure;<\/p>\n<p>    \/*\u5f00\u542fGPIOA\u7684\u65f6\u949f&#xff0c;\u56e0\u4e3aPA0\u5c5e\u4e8eGPIOA\u7aef\u53e3*\/<br \/>\n    RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE); <\/p>\n<p>    \/*\u9009\u62e9\u8981\u63a7\u5236\u7684GPIO\u5f15\u811a\u4e3aPA0*\/<br \/>\n    GPIO_InitStructure.GPIO_Pin &#061; GPIO_Pin_0;    <\/p>\n<p>    \/*\u8bbe\u7f6e\u5f15\u811a\u6a21\u5f0f\u4e3a\u901a\u7528\u63a8\u633d\u8f93\u51fa*\/<br \/>\n    GPIO_InitStructure.GPIO_Mode &#061; GPIO_Mode_Out_PP;   <\/p>\n<p>    \/*\u8bbe\u7f6e\u5f15\u811a\u901f\u7387\u4e3a50MHz *\/<br \/>\n    GPIO_InitStructure.GPIO_Speed &#061; GPIO_Speed_50MHz; <\/p>\n<p>    \/*\u8c03\u7528\u5e93\u51fd\u6570&#xff0c;\u521d\u59cb\u5316GPIOA\u7684PA0\u5f15\u811a*\/<br \/>\n    GPIO_Init(GPIOA, &amp;GPIO_InitStructure);    <\/p>\n<p>    \/\/\u521d\u59cb\u5316\u65f6\u5173\u706f<br \/>\n    \/* \u5173\u95edPA0\u5bf9\u5e94\u7684LED\u706f&#xff0c;\u5c06\u5176\u7535\u5e73\u8bbe\u7f6e\u4e3a\u9ad8\u7535\u5e73&#xff0c;\u5047\u8bbe\u9ad8\u7535\u5e73\u706d\u706f *\/<br \/>\n    GPIO_SetBits(GPIOA, GPIO_Pin_0);<br \/>\n}<\/p>\n<p>    \/* \u5c06\u5176\u7535\u5e73\u8bbe\u7f6e\u4e3a\u9ad8\u7535\u5e73*\/<br \/>\n    GPIO_SetBits(GPIOA, GPIO_Pin_0);<br \/>\n    \/* \u5c06\u5176\u7535\u5e73\u8bbe\u7f6e\u4e3a\u4f4e\u7535\u5e73*\/<br \/>\n    GPIO_SetBits(GPIOA, GPIO_Pin_0);<\/p>\n<p>\u7ba1\u811a\u8f93\u51fa\u63a7\u5236\u706f\u7684\u4eae\u706d\u8ddf\u5b9e\u9645\u7535\u8def\u6709\u5173\u3002<\/p>\n<h4>\u6309\u952e\u8f93\u5165<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"363\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729004834-6a694de2eaf56.png\" width=\"768\" \/><\/p>\n<p>\u5982\u4e0a\u56fe&#xff0c;IO\u63a510K\u7535\u963b\u7136\u540e\u63a5\u6309\u952e&#xff0c;\u6309\u952e\u53e6\u4e00\u7aef\u5206\u522b\u662f3.3V\u4e0eGND&#xff0c;\u6309\u952e\u8f93\u5165\u5176\u5b9e\u5c31\u662f\u68c0\u6d4b\u6309\u952e\u63a5\u6536\u5230\u7684\u9ad8\u538b\u6216\u8005\u4f4e\u538b\u300210K\u7535\u963b\u7528\u4e8e\u9650\u6d41&#xff0c;\u9632\u6b62\u70e7\u574f\u82af\u7247\u3002<\/p>\n<h4>\u7a0b\u5e8f\u4e3e\u4f8b<\/h4>\n<p>\/\/\u521d\u59cb\u5316\u7ba1\u811a<br \/>\nvoid Key_GPIO_Config(void)<br \/>\n{<br \/>\n    GPIO_InitTypeDef GPIO_InitStructure;<\/p>\n<p>    \/*\u5f00\u542f\u6309\u952e\u7aef\u53e3\u7684\u65f6\u949f*\/<br \/>\n    RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);<\/p>\n<p>    \/\/\u9009\u62e9\u6309\u952e\u7684\u5f15\u811a\u4e3aPA0<br \/>\n    GPIO_InitStructure.GPIO_Pin &#061; GPIO_Pin_0;<br \/>\n    \/\/ \u8bbe\u7f6e\u6309\u952e\u7684\u5f15\u811a\u4e3a\u6d6e\u7a7a\u8f93\u5165<br \/>\n    GPIO_InitStructure.GPIO_Mode &#061; GPIO_Mode_IN_FLOATING;<br \/>\n    \/\/\u4f7f\u7528\u7ed3\u6784\u4f53\u521d\u59cb\u5316\u6309\u952e<br \/>\n    GPIO_Init(GPIOA, &amp;GPIO_InitStructure);<br \/>\n}<\/p>\n<p>\/*\u68c0\u6d4b\u662f\u5426\u6709\u6309\u952e\u6309\u4e0b *\/<br \/>\nif(GPIO_ReadInputDataBit(GPIOA,GPIO_Pin_0) &#061;&#061; 1)<br \/>\n{<br \/>\n    }<br \/>\n    if(GPIO_ReadInputDataBit(GPIOA,GPIO_Pin_0) &#061;&#061; 0)<br \/>\n{<br \/>\n    }<\/p>\n<p>GPIO_ReadInputDataBit\u51fd\u6570\u8bfb\u53d6\u5355\u4e2aGPIO\u5f15\u811a\u8f93\u5165\u7535\u5e73\u72b6\u6001\u7684\u6838\u5fc3\u5e93\u51fd\u6570<\/p>\n<p>\u8fd4\u56de\u503c\u5bf9\u5e94\u5b8f\u503c1&#xff0c;\u8868\u793a\u5f15\u811a\u5f53\u524d\u8f93\u5165\u4e3a\u9ad8\u7535\u5e73<\/p>\n<p>\u8fd4\u56de\u503c\u5bf9\u5e94\u5b8f\u503c0&#xff0c;\u8868\u793a\u5f15\u811a\u5f53\u524d\u8f93\u5165\u4e3a\u4f4e\u7535\u5e73<\/p>\n<p>\u6839\u636e\u6309\u952e\u6309\u4e0b\u65f6\u8f93\u5165\u7684\u72b6\u6001\u6765\u5224\u65ad\u6309\u952e\u662f\u5426\u6309\u4e0b\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u70b9\u706f\u5982\u4e0a\u56fe&#xff0c;\u7535\u6d41\u65b9\u5411\u90fd\u4e3a\u4ece\u53f3\u5411\u5de6&#xff0c;\u5373\u53f3\u8fb9\u7535\u538b\u9ad8\u4e8e\u5de6\u8fb9\u7535\u538b\u65f6\u7535\u8def\u5bfc\u901a&#xff0c;LED\u706f\u4eae\u3002\u6b64\u7535\u8def\u9700\u8981\u6ce8\u610f\u6700\u5927\u8fc7\u6d41\u4e0d\u80fd\u8d85\u8fc7LED\u548c\u7535\u963b\u7684\u6700\u5927\u8fc7\u6d41\u503c\u3002\u5047\u8bbeLED\u538b\u964d\u4e3a1.8V&#xff0c;\u6211\u4eec\u4f7f\u4ed6\u7684\u8fc7\u6d41\u4e0d\u8d85\u8fc75mA\u3002\u5373&#xff08;\u9ad8\u538b-\u538b\u964d&#xff09;\/5mA\u6700\u5c0f\u963b\u503c\u3002&#xff08;3.3V-1.8V&#xff09;\/5mA300R\u3002\u7535\u963b\u8981\u5927\u4e8e300R,\u9664\u975e\u7535\u8def\u9700\u8981&#xff0c;3.3V\u65f6\u4e00\u822c\u7535\u963b\u503c\u90fd\u4e3a1K\u6216\u800510K\u7b49\u30020805\u5c01\u88c5L<\/p>\n","protected":false},"author":2,"featured_media":86785,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[174,217,270],"topic":[],"class_list":["post-86787","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-c","tag-stm32","tag-270"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>STM32\u5355\u7247\u673a\u6807\u51c6\u5e93\u2014GPIO\u70b9\u706f\u4e0e\u6309\u952e\u8f93\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/86787.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"STM32\u5355\u7247\u673a\u6807\u51c6\u5e93\u2014GPIO\u70b9\u706f\u4e0e\u6309\u952e\u8f93\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u70b9\u706f\u5982\u4e0a\u56fe&#xff0c;\u7535\u6d41\u65b9\u5411\u90fd\u4e3a\u4ece\u53f3\u5411\u5de6&#xff0c;\u5373\u53f3\u8fb9\u7535\u538b\u9ad8\u4e8e\u5de6\u8fb9\u7535\u538b\u65f6\u7535\u8def\u5bfc\u901a&#xff0c;LED\u706f\u4eae\u3002\u6b64\u7535\u8def\u9700\u8981\u6ce8\u610f\u6700\u5927\u8fc7\u6d41\u4e0d\u80fd\u8d85\u8fc7LED\u548c\u7535\u963b\u7684\u6700\u5927\u8fc7\u6d41\u503c\u3002\u5047\u8bbeLED\u538b\u964d\u4e3a1.8V&#xff0c;\u6211\u4eec\u4f7f\u4ed6\u7684\u8fc7\u6d41\u4e0d\u8d85\u8fc75mA\u3002\u5373&#xff08;\u9ad8\u538b-\u538b\u964d&#xff09;\/5mA\u6700\u5c0f\u963b\u503c\u3002&#xff08;3.3V-1.8V&#xff09;\/5mA300R\u3002\u7535\u963b\u8981\u5927\u4e8e300R,\u9664\u975e\u7535\u8def\u9700\u8981&#xff0c;3.3V\u65f6\u4e00\u822c\u7535\u963b\u503c\u90fd\u4e3a1K\u6216\u800510K\u7b49\u30020805\u5c01\u88c5L\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/86787.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-29T00:48:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729004834-6a694de2c9516.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86787.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/86787.html\",\"name\":\"STM32\u5355\u7247\u673a\u6807\u51c6\u5e93\u2014GPIO\u70b9\u706f\u4e0e\u6309\u952e\u8f93\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-29T00:48:36+00:00\",\"dateModified\":\"2026-07-29T00:48:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/86787.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/86787.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86787.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"STM32\u5355\u7247\u673a\u6807\u51c6\u5e93\u2014GPIO\u70b9\u706f\u4e0e\u6309\u952e\u8f93\u5165\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"STM32\u5355\u7247\u673a\u6807\u51c6\u5e93\u2014GPIO\u70b9\u706f\u4e0e\u6309\u952e\u8f93\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/86787.html","og_locale":"zh_CN","og_type":"article","og_title":"STM32\u5355\u7247\u673a\u6807\u51c6\u5e93\u2014GPIO\u70b9\u706f\u4e0e\u6309\u952e\u8f93\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u70b9\u706f\u5982\u4e0a\u56fe&#xff0c;\u7535\u6d41\u65b9\u5411\u90fd\u4e3a\u4ece\u53f3\u5411\u5de6&#xff0c;\u5373\u53f3\u8fb9\u7535\u538b\u9ad8\u4e8e\u5de6\u8fb9\u7535\u538b\u65f6\u7535\u8def\u5bfc\u901a&#xff0c;LED\u706f\u4eae\u3002\u6b64\u7535\u8def\u9700\u8981\u6ce8\u610f\u6700\u5927\u8fc7\u6d41\u4e0d\u80fd\u8d85\u8fc7LED\u548c\u7535\u963b\u7684\u6700\u5927\u8fc7\u6d41\u503c\u3002\u5047\u8bbeLED\u538b\u964d\u4e3a1.8V&#xff0c;\u6211\u4eec\u4f7f\u4ed6\u7684\u8fc7\u6d41\u4e0d\u8d85\u8fc75mA\u3002\u5373&#xff08;\u9ad8\u538b-\u538b\u964d&#xff09;\/5mA\u6700\u5c0f\u963b\u503c\u3002&#xff08;3.3V-1.8V&#xff09;\/5mA300R\u3002\u7535\u963b\u8981\u5927\u4e8e300R,\u9664\u975e\u7535\u8def\u9700\u8981&#xff0c;3.3V\u65f6\u4e00\u822c\u7535\u963b\u503c\u90fd\u4e3a1K\u6216\u800510K\u7b49\u30020805\u5c01\u88c5L","og_url":"https:\/\/www.wsisp.com\/helps\/86787.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-29T00:48:36+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260729004834-6a694de2c9516.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/86787.html","url":"https:\/\/www.wsisp.com\/helps\/86787.html","name":"STM32\u5355\u7247\u673a\u6807\u51c6\u5e93\u2014GPIO\u70b9\u706f\u4e0e\u6309\u952e\u8f93\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-29T00:48:36+00:00","dateModified":"2026-07-29T00:48:36+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/86787.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/86787.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/86787.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"STM32\u5355\u7247\u673a\u6807\u51c6\u5e93\u2014GPIO\u70b9\u706f\u4e0e\u6309\u952e\u8f93\u5165"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=86787"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86787\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/86785"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=86787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=86787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=86787"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=86787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}