{"id":2864,"date":"2020-05-07T09:06:10","date_gmt":"2020-05-07T00:06:10","guid":{"rendered":"http:\/\/taki-lab.site\/bocci\/?p=2864"},"modified":"2020-05-07T09:06:13","modified_gmt":"2020-05-07T00:06:13","slug":"%e3%80%90%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a4%e3%80%91led%e3%83%87%e3%82%a3%e3%82%b9%e3%83%97%e3%83%ac%e3%82%a4%e3%81%a7%e6%b8%a9%e5%ba%a6%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=2864","title":{"rendered":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011LED\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3067\u6e29\u5ea6\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"\n<p>\u3069\u3046\u305b\u306a\u3089LED\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3092\u5229\u7528\u3057\u305f\u3044\u306e\u3067\u3001LED\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3067\u6e29\u5ea6\u3092\u8868\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u306f\u3001\u5de6\u4e0a\u304b\u30891\u2103\u4e0a\u304c\u308b\u3053\u3068\u306bLED\u304c\u4e00\u500b\u70b9\u706f\u3059\u308b\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30b3\u30fc\u30c9\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import time\nfrom sense_hat import SenseHat\nsense = SenseHat()\nsense.clear()\n\nwhile True:\n    temp = int(sense.get_temperature())\n    print(temp)\n    y = temp \/\/ 8\n    x = temp % 8\n    for dy in range(0, y + 1):\n        if dy &lt; y:\n            for dx in range(0, 8):\n                sense.set_pixel(dx, dy, 255, 0, 0)\n        else:\n            for dx in range(0, 8):\n                sense.set_pixel(dx, dy, 0, 0, 0)\n            for dx in range(0, x):\n                sense.set_pixel(dx, dy, 255, 0, 0)\n    #time.sleep(1)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"474\" height=\"267\" src=\"https:\/\/www.youtube.com\/embed\/dnFNEy3pepk?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=ja&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<p>\u6700\u521d\u306f36\u2103\u3050\u3089\u3044\u3042\u3063\u305f\u6e29\u5ea6\u3067\u3059\u304c\u3001\u3046\u3061\u308f\u3067\u6247\u3044\u3067\u98a8\u3092\u9001\u308b\u3053\u3068\u306b\u3088\u308a\u300131\u2103\u3050\u3089\u3044\u307e\u3067\u4e0b\u3052\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u30e9\u30ba\u30d1\u30a4\u306e\u6e29\u5ea6\u4e0a\u6607\u306f\u4ed5\u65b9\u304c\u7121\u3044\u3068\u3057\u3066\u3001\u305d\u308c\u306b\u5f71\u97ff\u3055\u308c\u308b\u6e29\u5ea6\u8a08\u3063\u3066\u3001\u4f7f\u3044\u3065\u3089\u304f\u306a\u3044\uff1f\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/\/blog.with2.net\/link\/?2023426:1010\" target=\"_blank\" rel=\"noreferrer noopener\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/03a6eee54039f74ded0b8f7548b1868f.png?w=474\" alt=\"\" title=\"\u30d1\u30bd\u30b3\u30f3\u30e9\u30f3\u30ad\u30f3\u30b0\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u305b\u306a\u3089LED\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3092\u5229\u7528\u3057\u305f\u3044\u306e\u3067\u3001LED\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3067\u6e29\u5ea6\u3092\u8868\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u306f\u3001\u5de6\u4e0a\u304b\u30891\u2103\u4e0a\u304c\u308b\u3053\u3068\u306bLED\u304c\u4e00\u500b\u70b9\u706f\u3059\u308b\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002 \u30b3\u30fc\u30c9\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002 \u6700\u521d\u306f36\u2103\u3050\u3089\u3044\u3042 &hellip; <a href=\"https:\/\/taki-lab.site\/bocci\/?p=2864\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u3010\u30e9\u30ba\u30d1\u30a4\u3011LED\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3067\u6e29\u5ea6\u3092\u8868\u793a\u3059\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[187,3],"tags":[188],"class_list":["post-2864","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","category-3","tag-188"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8SDbY-Kc","jetpack-related-posts":[{"id":2818,"url":"https:\/\/taki-lab.site\/bocci\/?p=2818","url_meta":{"origin":2864,"position":0},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u306b\u3044\u308d\u3044\u308d\u8868\u793a\u3055\u305b\u3066\u307f\u308b","author":"taki","date":"2020\u5e745\u67083\u65e5","format":false,"excerpt":"\u3053\u3061\u3089\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5165\u529b\u3057\u307e\u3059\u3002 https:\/\/github.com\/raspberryp\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/MVIMG_20200501_092912.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/MVIMG_20200501_092912.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/MVIMG_20200501_092912.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/MVIMG_20200501_092912.jpg?resize=700%2C400 2x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/MVIMG_20200501_092912.jpg?resize=1050%2C600 3x"},"classes":[]},{"id":2873,"url":"https:\/\/taki-lab.site\/bocci\/?p=2873","url_meta":{"origin":2864,"position":1},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af\u3092\u4f7f\u3063\u3066\u307f\u308b\u3002","author":"taki","date":"2020\u5e745\u67088\u65e5","format":false,"excerpt":"\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u3044\u307e\u3059\u3002 https:\/\/github.com\/raspberrypilea\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/Jxcaq7GADV0\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2906,"url":"https:\/\/taki-lab.site\/bocci\/?p=2906","url_meta":{"origin":2864,"position":2},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u30bb\u30f3\u30b5\u30fc\u30c7\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3002","author":"taki","date":"2020\u5e745\u670810\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2896 \u4eca\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/05\/39f39e098ef0038af6d1a2b8d092a64d.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3373,"url":"https:\/\/taki-lab.site\/bocci\/?p=3373","url_meta":{"origin":2864,"position":3},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011GLCD\u306b\u6642\u523b\u30fb\u6c17\u6e29\u30fb\u6e7f\u5ea6\u30fb\u5929\u5019\u60c5\u5831\u3092\u8868\u793a\u3059\u308b","author":"taki","date":"2020\u5e746\u670825\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u3084\u3063\u3066\u3044\u305fGLCD\u3092\u30e9\u30a4\u30d6\u30e9\u30ea\u5316\u3057\u3066\u3001gitHub\u3092\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002 https:\/\/gith\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3527,"url":"https:\/\/taki-lab.site\/bocci\/?p=3527","url_meta":{"origin":2864,"position":4},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u3053\u308c\u307e\u3067\u3084\u3063\u3066\u304d\u305f\u3053\u3068\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3002","author":"taki","date":"2020\u5e747\u67089\u65e5","format":false,"excerpt":"\u3053\u3053\u307e\u3067\u3084\u3063\u3066\u304d\u305f\u3053\u3068\u3092\u5168\u3066\u7d44\u307f\u5408\u308f\u305b\u307e\u3059\u3002 GLCD\u306b\u8868\u793a\u3059\u308b\u306e\u306f\u3001 \u6642\u523b\u3001\u5929\u6c17\u3001\u6e29\u5ea6\u3001\u6e7f\u5ea6\u30ab\u30ec\u30f3\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/GvWc3-F3KLI\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3620,"url":"https:\/\/taki-lab.site\/bocci\/?p=3620","url_meta":{"origin":2864,"position":5},"title":"\u3010\u30e9\u30ba\u30d1\u30a4\u3011\u30b9\u30a4\u30c3\u30c1\u64cd\u4f5c\u3092\u5272\u308a\u8fbc\u307f\u3067\u884c\u3046\u3002","author":"taki","date":"2020\u5e747\u670818\u65e5","format":false,"excerpt":"\u6700\u65b0\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089\u3002 https:\/\/github.com\/takishita2nd\/RaspiDi\u2026","rel":"","context":"Raspberry Pi","block_context":{"text":"Raspberry Pi","link":"https:\/\/taki-lab.site\/bocci\/?cat=187"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/07\/IMG_20200718_073112-scaled.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/07\/IMG_20200718_073112-scaled.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/07\/IMG_20200718_073112-scaled.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/07\/IMG_20200718_073112-scaled.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/07\/IMG_20200718_073112-scaled.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/07\/IMG_20200718_073112-scaled.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2864"}],"version-history":[{"count":1,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2864\/revisions"}],"predecessor-version":[{"id":2865,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2864\/revisions\/2865"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}