{"id":1685,"date":"2020-04-12T00:06:30","date_gmt":"2020-04-11T16:06:30","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=1685"},"modified":"2020-09-27T17:05:29","modified_gmt":"2020-09-27T09:05:29","slug":"raspberrypiled%e5%ae%9e%e9%aa%8c","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=1685","title":{"rendered":"[RaspBerryPi]LED\u5b9e\u9a8c"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>import RPi.GPIO as GPIO\nimport time\npin = 11\nGPIO.setmode(GPIO.BCM)\nGPIO.setup(pin, GPIO.OUT)\nfor i in range(0, 5):\n    GPIO.output(pin, True)\n    time.sleep(1)\n    GPIO.output(pin, False)\n    time.sleep(1)\nGPIO.cleanup()<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"348\" height=\"144\" src=\"http:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/04\/image-2.png\" alt=\"\" class=\"wp-image-1689\" srcset=\"https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/04\/image-2.png 348w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/04\/image-2-300x124.png 300w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/04\/image-2-70x29.png 70w\" sizes=\"(max-width: 348px) 100vw, 348px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1685"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1685"}],"version-history":[{"count":3,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1685\/revisions"}],"predecessor-version":[{"id":1694,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1685\/revisions\/1694"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}