{"id":76825,"date":"2024-01-14T22:13:23","date_gmt":"2024-01-14T14:13:23","guid":{"rendered":"\/\/www.viralrail.com\/?p=76825"},"modified":"2024-01-14T22:13:23","modified_gmt":"2024-01-14T14:13:23","slug":"ckdpzcsjqyy","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/76825.html","title":{"rendered":"\u4e32\u53e3\u7684\u914d\u7f6e\u53c2\u6570\u53ca\u5176\u5e94\u7528"},"content":{"rendered":"

  \u4e32\u53e3\u662f\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\u5e38\u7528\u7684\u901a\u4fe1\u63a5\u53e3\uff0c\u5176\u914d\u7f6e\u53c2\u6570\u5bf9\u901a\u4fe1\u7a33\u5b9a\u6027\u548c\u6570\u636e\u4f20\u8f93\u901f\u7387\u6709\u91cd\u8981\u5f71\u54cd\u3002\u672c\u6587\u5c06\u6df1\u5165\u4ecb\u7ecd\u4e32\u53e3\u7684\u914d\u7f6e\u53c2\u6570\u53ca\u5176\u5e94\u7528\u3002<\/p>\n

\u6ce2\u7279\u7387<\/h2>\n

  \u6ce2\u7279\u7387\u662f\u6307\u6bcf\u79d2\u949f\u4f20\u8f93\u7684\u4f4d\u6570\uff0c\u901a\u5e38\u7528\u6ce2\u7279\u7387\u6765\u63cf\u8ff0\u4e32\u884c\u901a\u4fe1\u4e2d\u7684\u901f\u5ea6\u3002\u5728\u4e32\u53e3\u901a\u4fe1\u4e2d\uff0c\u53d1\u9001\u7aef\u548c\u63a5\u6536\u7aef\u7684\u6ce2\u7279\u7387<\/a>\u5fc5\u987b\u4e00\u81f4\uff0c\u5426\u5219\u6570\u636e\u4f20\u8f93\u4f1a\u51fa\u73b0\u9519\u8bef\u3002\u5e38\u89c1\u7684\u6ce2\u7279\u7387\u5305\u62ec9600\u300119200\u300138400\u7b49\uff0c\u9009\u62e9\u9002\u5408\u7684\u6ce2\u7279\u7387\u53ef\u4ee5\u63d0\u9ad8\u901a\u4fe1\u6548\u7387\u3002<\/p>\n

  \u6ce2\u7279\u7387\u7684\u8bbe\u7f6e\u65b9\u6cd5<\/h3>\n

  \u5728Arduino<\/a>\u7b49\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8f6f\u4ef6\u8bbe\u7f6e\u6ce2\u7279\u7387\u3002\u901a\u8fc7\u8c03\u7528\u76f8\u5e94\u7684\u5e93\u51fd\u6570\uff0c\u5c06\u6ce2\u7279\u7387\u8bbe\u7f6e\u4e3a\u6240\u9700\u7684\u6570\u503c\u5373\u53ef\uff0c\u4f8b\u5982\uff1a<\/p>\n

Serial.begin(9600);<\/code><\/p>\n

  \u6ce2\u7279\u7387\u7684\u5e94\u7528\u573a\u666f<\/h3>\n

  \u9ad8\u6ce2\u7279\u7387\u9002\u5408\u4e8e\u8981\u6c42\u9ad8\u901f\u4f20\u8f93\u7684\u573a\u5408\uff0c\u5982\u4f20\u611f\u5668\u6570\u636e\u91c7\u96c6\uff1b\u4f4e\u6ce2\u7279\u7387\u5219\u9002\u5408\u4e8e\u5bf9\u5b9e\u65f6\u6027\u8981\u6c42\u4e0d\u9ad8\u7684\u4f20\u8f93\u573a\u666f\u3002<\/p>\n

\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6821\u9a8c\u4f4d<\/h2>\n

  \u9664\u4e86\u6ce2\u7279\u7387\u5916\uff0c\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6821\u9a8c\u4f4d\u4e5f\u662f\u4e32\u53e3\u901a\u4fe1\u4e2d\u7684\u91cd\u8981\u914d\u7f6e\u53c2\u6570\u3002\u6570\u636e\u4f4d\u6307\u6bcf\u4e2a\u5b57\u7b26\u5305\u542b\u7684\u6570\u636e\u4f4d\u6570\uff0c\u5e38\u89c1\u7684\u67098\u4f4d\u548c9\u4f4d\uff1b\u505c\u6b62\u4f4d\u7528\u4e8e\u6307\u793a\u4e00\u4e2a\u5b57\u7b26\u4f20\u8f93\u7684\u7ed3\u675f\uff1b\u6821\u9a8c\u4f4d\u7528\u4e8e\u9a8c\u8bc1\u6570\u636e\u7684\u51c6\u786e\u6027\u3002<\/p>\n

  \u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6821\u9a8c\u4f4d\u7684\u8bbe\u7f6e\u65b9\u6cd5<\/h3>\n

  \u5728\u4e32\u53e3\u901a\u4fe1<\/a>\u4e2d\uff0c\u53ef\u901a\u8fc7\u76f8\u5e94\u7684\u63a7\u5236\u5bc4\u5b58\u5668\u6765\u8bbe\u7f6e\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6821\u9a8c\u4f4d\uff0c\u5177\u4f53\u8bbe\u7f6e\u65b9\u6cd5\u9700\u6839\u636e\u786c\u4ef6\u8bbe\u5907\u7684\u8981\u6c42\u6765\u8fdb\u884c\u3002<\/p>\n

  \u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6821\u9a8c\u4f4d\u7684\u5e94\u7528\u573a\u666f<\/h3>\n

  \u5bf9\u4e8e\u8981\u6c42\u6570\u636e\u51c6\u786e\u6027\u548c\u53ef\u9760\u6027\u9ad8\u7684\u4f20\u8f93\u573a\u666f\uff0c\u5efa\u8bae\u9009\u62e9\u8f83\u957f\u7684\u6570\u636e\u4f4d\u548c\u8f83\u591a\u7684\u505c\u6b62\u4f4d\uff0c\u540c\u65f6\u5f00\u542f\u6821\u9a8c\u4f4d\u3002\u76f8\u53cd\uff0c\u5bf9\u4e8e\u6570\u636e\u8981\u6c42\u4e0d\u9ad8\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u9002\u5f53\u964d\u4f4e\u6570\u636e\u4f4d\u548c\u505c\u6b62\u4f4d\u7684\u8bbe\u7f6e\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u4e32\u53e3\u7684\u914d\u7f6e\u53c2\u6570\u76f4\u63a5\u5f71\u54cd\u901a\u4fe1\u6548\u7387\u548c\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\uff0c\u5728\u7269\u8054\u7f51\u9886\u57df\u4e2d\u8d77\u7740\u91cd\u8981\u4f5c\u7528\u3002<\/strong>\u5408\u7406\u9009\u62e9\u5e76\u5e94\u7528\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6821\u9a8c\u4f4d\uff0c\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u4e0b\u7684\u901a\u4fe1\u9700\u6c42\u3002\u5e0c\u671b\u672c\u6587\u80fd\u4e3a\u8bfb\u8005\u5bf9\u4e32\u53e3\u914d\u7f6e\u53c2\u6570\u53ca\u5176\u5e94\u7528\u6709\u66f4\u6df1\u5165\u7684\u4e86\u89e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4e32\u53e3\u662f\u7269\u8054\u7f51\u8bbe\u5907\u4e2d\u5e38\u7528\u7684\u901a\u4fe1\u63a5\u53e3\uff0c\u5176\u914d\u7f6e\u53c2\u6570\u5bf9\u901a\u4fe1\u7a33\u5b9a\u6027\u548c\u6570\u636e\u4f20\u8f93\u901f\u7387\u6709\u91cd\u8981\u5f71\u54cd\u3002\u672c\u6587\u5c06\u6df1\u5165\u4ecb\u7ecd\u4e32\u53e3\u7684\u914d\u7f6e\u53c2\u6570\u53ca\u5176\u5e94\u7528\u3002\u6ce2\u7279\u7387\u6ce2\u7279\u7387\u662f\u6307\u6bcf\u79d2\u949f\u4f20\u8f93\u7684\u4f4d\u6570\uff0c\u901a\u5e38\u7528\u6ce2<\/p>\n","protected":false},"author":1,"featured_media":64183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[69],"class_list":["post-76825","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cktx"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/76825"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=76825"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/76825\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=76825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=76825"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=76825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}