{"id":256,"date":"2018-06-28T18:22:26","date_gmt":"2018-06-28T10:22:26","guid":{"rendered":"http:\/\/www.inhhh.com\/blog\/?p=256"},"modified":"2018-06-28T18:23:09","modified_gmt":"2018-06-28T10:23:09","slug":"%e7%89%a9%e8%81%94%e7%bd%91%e5%bc%80%e5%8f%91%ef%bc%9apyboard-%e9%a9%b1%e5%8a%a8%e7%94%b5%e6%9c%ba","status":"publish","type":"post","link":"http:\/\/www.inhhh.com\/blog\/?p=256","title":{"rendered":"\u7269\u8054\u7f51\u5f00\u53d1\uff1aPYBOARD \u9a71\u52a8\u7535\u673a"},"content":{"rendered":"<p>\u63a5\u7ebf\uff1a<br \/>\npyboard v102 &#8212;- L298N<\/p>\n<p>Y1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8212;- N1<br \/>\nY2 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8212;- N2<br \/>\nY3 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8212;- N3<br \/>\nY4 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8212;- N4<\/p>\n<p>\u540c\u65f6\u62d4\u6389\u677f\u8f7d5V\u4f7f\u80fd\u8df3\u7ebf\u5e3d<\/p>\n<p>l298n&#8212;-\u7535\u673a<br \/>\nOUT3 &#8212; \u7535\u673aV++<br \/>\nOUT4 &#8212; \u7535\u673aGND<\/p>\n<p>OUT1 &#8212; \u7535\u673aV++<br \/>\nOUT2 &#8212; \u7535\u673aGND<\/p>\n<p>\u5173\u952e\u4ee3\u7801\uff1a<\/p>\n<p>&nbsp;<\/p>\n<pre>y1 = Pin('Y1', Pin.OUT_PP) \r\ny2 = Pin('Y2', Pin.OUT_PP) \r\nx1 = Pin('Y3', Pin.OUT_PP) \r\nx2 = Pin('Y4', Pin.OUT_PP)\r\n\r\nstart1=Timer(1,freq=10000,callback=start) stop1=Timer(4,freq=2,callback=stop)\r\n\r\ny2.heigh() \r\ny1.low() \r\nx2.heigh() \r\nx1.low()<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u63a5\u7ebf\uff1a pyboard v102 &#8212;- L298N Y1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"http:\/\/www.inhhh.com\/blog\/?p=256\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[45,46,48],"class_list":["post-256","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-micropython","tag-upycraft","tag-48"],"_links":{"self":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=256"}],"version-history":[{"count":1,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/256\/revisions"}],"predecessor-version":[{"id":257,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/256\/revisions\/257"}],"wp:attachment":[{"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inhhh.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}