{"id":703,"date":"2017-04-26T22:57:15","date_gmt":"2017-04-26T13:57:15","guid":{"rendered":"http:\/\/www.mizutan.com\/wordpress\/?p=703"},"modified":"2025-09-26T20:18:42","modified_gmt":"2025-09-26T11:18:42","slug":"post-703","status":"publish","type":"post","link":"https:\/\/www.mizutan.com\/wordpress\/?p=703","title":{"rendered":"sense hat\u306eLED\u30de\u30c8\u30ea\u30af\u30b9\u4e0a\u306b\u69d8\u3005\u306a\u30a4\u30e1\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"\n<p class=\"has-vivid-red-color has-text-color has-small-font-size\"><strong>\u65b0\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u57fa\u306b\u30ea\u30cb\u30e5\u30fc\u30a2\u30eb\u3057\u307e\u3057\u305f\u3002\u3000\u30002018\/10\/6<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=679\" target=\"_blank\" rel=\"noreferrer noopener\">\u524d\u56de\u8a18\u4e8b<\/a>\u3067\u306f sense hat\u3092raspberrypi\u306b\u53d6\u308a\u3064\u3051\u305f\u5f8c\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3063\u306664\u500b\u306e LED \u306b\u6587\u5b57\u3092\u8868\u793a\u3057\u307e\u3057\u305f\u3002<br><br>\u7b2c2\u5f3e\u3067\u3042\u308b\u672c\u8a18\u4e8b\u3067\u306f\u3001LED\u5168\u4f53\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br><br>\u524d\u56de\u3068\u540c\u69d8\u306b\u3001<a href=\"https:\/\/projects.raspberrypi.org\/en\/projects\/getting-started-with-the-sense-hat\/5\" target=\"_blank\" rel=\"noreferrer noopener\">sense hat \u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/a>\u306b\u5f93\u3063\u3066\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<br><br>\u4eca\u56de\u306f\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u3042\u308bDisplaying images \u306e\u7ae0\u306e\u5185\u5bb9\u3092\u5b9f\u884c\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- www_\u30a4\u30f3\u30c8\u30ed -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"1208333098\"\r\n     data-ad-format=\"rectangle\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">LED\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u5168\u4f53\u3092\u5358\u4e00\u306e\u8272\u3067\u5857\u308a\u3064\u3076\u3059<\/h2>\n\n\n\n<p>\u59cb\u3081\u306b\u3001\u9078\u629e\u3057\u305f\u8272\u3067 clear\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001LED\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u5168\u4f53\u3092\u5358\u4e00\u306e\u8272\u3067\u5857\u308a\u3064\u3076\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>from sense_hat import SenseHat\n\nsense = SenseHat()\n\nr = 255\ng = 255\nb = 255\n\nsense.clear((r, g, b))<\/code><\/pre><\/div>\n\n\n\n<p>\u7d50\u679c\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\uff08\u52d5\u753b\u306b\u3057\u305f\u306e\u306f\u3001\u3053\u3046\u3057\u306a\u3044\u3068\u304d\u308c\u3044\u306a\u7d50\u679c\u304c\u53d6\u308c\u306a\u304b\u3063\u305f\u305f\u3081\u3067\u3059\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"MVI 6602\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/vQPVJmBk3_s?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u3001\u4ee5\u4e0b\u306e\u8aac\u660e\u304c\u51fa\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-pale-cyan-blue-background-color has-background\">\u5909\u6570 r\u3001g\u3001\u53ca\u3073 b \u306f\u8d64\u3001\u7dd1\u3001\u9752\u306e\u8272\u3092\u8868\u3057\u307e\u3059\u3002\u305d\u308c\u3089\u306e\u5024\u306f\u3001\u5404\u8272\u306e\u660e\u308b\u3055\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u5404\u5024\u306f 0 \u304b\u3089 255 \u306e\u9593\u3067\u3059\u3002\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u5404\u8272\u306e\u6700\u5927\u5024\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u7d50\u679c\u306f\u767d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"8169621401\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u30b7\u30f3\u30b0\u30eb\u30d4\u30af\u30bb\u30eb\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p class=\"has-pale-cyan-blue-background-color has-background\">Sense HAT\u306eLED\u30de\u30c8\u30ea\u30af\u30b9\u306f\u3001x\u8ef8\u3068y\u8ef8\u306e\u5ea7\u6a19\u7cfb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4e21\u65b9\u306e\u8ef8\u306e\u756a\u53f7\u4ed8\u3051\u306f\u3001\u5de6\u4e0a\u9685\u306e0\uff081\u3067\u306f\u306a\u304f\uff09\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\u3002\u5404LED\u306f\u753b\u50cf\u306e1\u30d4\u30af\u30bb\u30eb\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u3001x\u3001y\u8868\u8a18\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30c9\u30ec\u30b9\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u3042\u308b\u8868\u3092\u8ee2\u8f09\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u8ef8\u306e\u756a\u53f7\u4ed8\u3051\u304c\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"306\" height=\"320\" src=\"https:\/\/www.mizutan.com\/wordpress\/wp-content\/uploads\/2017\/04\/LED_Mtrix.jpg\" alt=\"\" class=\"wp-image-706\"\/><\/figure>\n<\/div>\n\n\n<p>\u4e0a\u8a18\u306e\u9752\u53ca\u3073\u8d64\u306e\u5ea7\u6a19\u306f\u3001\u4e0a\u8a18\u306e\u8aac\u660e\u306b\u5f93\u3063\u3066\u3001\u9752\u306f (0, 2)\u3001\u8d64\u306f (7, 4) \u306b\u306a\u308a\u307e\u3059\u3002<br><br>sense hat \u3092\u56f3\u306e\u3088\u3046\u306b\u5149\u3089\u305b\u308b\u306b\u306f\u3001set_pixel\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>from sense_hat import SenseHat\n\nsense = SenseHat()\n\nsense.set_pixel(0, 2, [0, 0, 255])\nsense.set_pixel(7, 4, [255, 0, 0])<\/code><\/pre><\/div>\n\n\n\n<p>\u52d5\u304b\u3057\u3066\u307f\u308b\u3068\u540c\u3058\u3088\u3046\u306b LED \u304c\u5149\u308a\u307e\u3057\u305f\u3002\u5199\u771f\u3060\u3068\u8272\u304c\u30ad\u30ec\u30a4\u306b\u5199\u308a\u307e\u305b\u3093\u304c\u3001\u3054\u5bb9\u8d66\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"180\" height=\"320\" src=\"https:\/\/www.mizutan.com\/wordpress\/wp-content\/uploads\/2017\/04\/P_20170421_230910.jpg\" alt=\"\" class=\"wp-image-707\"\/><\/figure>\n<\/div>\n\n\n<p>\u3055\u3066\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u304c\u793a\u3055\u308c\u3001\u3055\u3042\u3001\u4f55\u304c\u8868\u793a\u3055\u308c\u308b\u304b\u306a\u3068\u554f\u3046\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>sense.set_pixel(2, 2, [0, 0, 255])\nsense.set_pixel(4, 2, [0, 0, 255])\nsense.set_pixel(3, 4, [100, 0, 0])\nsense.set_pixel(1, 5, [255, 0, 0])\nsense.set_pixel(2, 6, [255, 0, 0])\nsense.set_pixel(3, 6, [255, 0, 0])\nsense.set_pixel(4, 6, [255, 0, 0])\nsense.set_pixel(5, 5, [255, 0, 0])<\/code><\/pre><\/div>\n\n\n\n<p>\uff18\u500b\u306e LED \u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3067\u4f55\u304c\u73fe\u308c\u308b\u3067\u3057\u3087\u3046\u304b\uff1f<br><br>\u65e9\u901f\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u306f\u4f55\u3067\u3057\u3087\u3046\u304b\uff1f\u7b11\u9854\u306e\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u304c\u2026\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"180\" height=\"320\" src=\"https:\/\/www.mizutan.com\/wordpress\/wp-content\/uploads\/2017\/04\/P_20170421_231003.jpg\" alt=\"\" class=\"wp-image-708\"\/><\/figure>\n<\/div>\n\n\n<p>60\u723a\u306f\u3001\u66ab\u304f\u8003\u3048\u3066\u3084\u3063\u3068\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-vk-blocks-alert vk_alert alert alert-info\"><div class=\"vk_alert_content\">\n<p>\u5199\u771f\u3067\u306f LED \u304c10\u30f6\u6240\u5149\u3063\u3066\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\uff18\u7b87\u6240\u3057\u304b LED \u6307\u5b9a\u3092\u3057\u3066\u3044\u307e\u305b\u3093\uff01<\/p>\n<\/div><\/div>\n\n\n\n<p>\uff12\u7b87\u6240\u591a\u3044\u3067\u3059\u3002<br><br>\u5373\u3061\u3001<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fe0000\" class=\"has-inline-color\">\u4e00\u3064\u524d\u306e\u6f14\u7fd2\u3067\u8868\u793a\u3057\u305f\u9752\u3068\u8d64\u306e\uff2c\uff25\uff24\u304c\u3001\u305d\u306e\u307e\u307e\u6b8b\u3063\u3066\u3044\u308b<\/mark><\/strong>\u306e\u3067\u3001\u3053\u306e\u3088\u3046\u306a\u5f62\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3059\u3002<br><br>\u539f\u56e0\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u306e\u3067\u3001LED\u3092\u30af\u30ea\u30a2\u3057\u3066\u304b\u3089\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"180\" height=\"320\" src=\"https:\/\/www.mizutan.com\/wordpress\/wp-content\/uploads\/2017\/04\/P_20170422_134652.jpg\" alt=\"\u7b11\u9854\u306e\u8868\u793a\u306e\u753b\u50cf\" class=\"wp-image-710\" srcset=\"https:\/\/www.mizutan.com\/wordpress\/wp-content\/uploads\/2017\/04\/P_20170422_134652.jpg 180w, https:\/\/www.mizutan.com\/wordpress\/wp-content\/uploads\/2017\/04\/P_20170422_134652-169x300.jpg 169w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/figure>\n<\/div>\n\n\n<p>\u305d\u3046\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7b11\u9854\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"9186857477\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u8907\u6570\u306e\u30d4\u30af\u30bb\u30eb\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n\n\n\n<p>\u30d4\u30af\u30bb\u30eb\u3092\u500b\u5225\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u9bae\u3084\u304b\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u8907\u6570\u306e\u30d4\u30af\u30bb\u30eb\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u304b\u306a\u308a\u8907\u96d1\u306b\u306a\u308a\u307e\u3059\u3002 <br><br>1\u3064\u306e\u30d4\u30af\u30bb\u30eb\u3092\u3059\u3079\u3066\u5909\u66f4\u3059\u308b\u306b\u306f\u3001set_pixels\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65b0\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff11\u3064\u76ee\u306e\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n\n\n\n<p>\u65b0\u3057\u3044\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u51fa\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\uff12\u3064\u3042\u308a\u307e\u3059\u3002<br><br>\u307e\u305a\u4e00\u3064\u76ee\u304c\u3053\u308c\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>from sense_hat import SenseHat\n\nsense = SenseHat()\n\n# Define some colours\ng = (0, 255, 0) # Green\nb = (0, 0, 0) # Black\n\n# Set up where each colour will display\ncreeper_pixels = [\ng, g, g, g, g, g, g, g,\ng, g, g, g, g, g, g, g,\ng, b, b, g, g, b, b, g,\ng, b, b, g, g, b, b, g,\ng, g, g, b, b, g, g, g,\ng, g, b, b, b, b, g, g,\ng, g, b, b, b, b, g, g,\ng, g, b, g, g, b, g, g\n]\n\n# Display these colours on the LED matrix\nsense.set_pixels(creeper_pixels)<\/code><\/pre><\/div>\n\n\n\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"MVI 6601\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/lf1JswGFdzQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u65b0\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff12\u3064\u76ee\u306e\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n\n\n\n<p>\u4e8c\u3064\u76ee\u304c\u3053\u308c\u3067\u3059\u3002\uff14\u3064\u306e\u30ab\u30e9\u30fc\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>from sense_hat import SenseHat\n\nsense = SenseHat()\n\n# Define some colours\nB = (102, 51, 0)\nb = (0, 0, 255)\nS = (205,133,63)\nW = (255, 255, 255)\n\n# Set up where each colour will display\nsteve_pixels = [\nB, B, B, B, B, B, B, B,\nB, B, B, B, B, B, B, B,\nB, S, S, S, S, S, S, B,\nS, S, S, S, S, S, S, S,\nS, W, b, S, S, b, W, S,\nS, S, S, B, B, S, S, S,\nS, S, B, S, S, B, S, S,\nS, S, B, B, B, B, S, S\n]\n\n# Display these colours on the LED matrix\nsense.set_pixels(steve_pixels)<\/code><\/pre><\/div>\n\n\n\n<p>\u4f55\u304b\u3001\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u8868\u793a\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"MVI 6600\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/RZiNXsEaSno?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u65e7\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n\n\n\n<p>\u4ee5\u524d\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u51fa\u3066\u3044\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002\u3053\u3061\u3089\u306f\u30018\u7a2e\u985e\u3082\u306e\u30ab\u30e9\u30fc\u3092\u3057\u3066\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>\u3000\u3000o = [255,127,0]\n\u3000\u3000y = [255,255,0]\n\u3000\u3000r = [255,0,0]\n\u3000\u3000g = [0,255,0]\n\u3000\u3000b = [0,0,255]\n\u3000\u3000i = [75,0,130]\n\u3000\u3000v = [159,0,255]\n\u3000\u3000e = [0,0,0]\nimage = [\n\u3000\u3000e,e,e,e,e,e,e,e,\n\u3000\u3000e,e,e,r,r,e,e,e,\n\u3000\u3000e,r,r,o,o,r,r,e,\n\u3000\u3000r,o,o,y,y,o,o,r,\n\u3000\u3000o,y,y,g,g,y,y,o,\n\u3000\u3000y,g,g,b,b,g,g,y,\n\u3000\u3000b,b,b,i,i,b,b,b,\n\u3000\u3000b,i,i,v,v,i,i,b\n\u3000\u3000]\nsense.set_pixels(image)<\/code><\/pre><\/div>\n\n\n\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u8272\u3068\u308a\u3069\u308a\u306e\u8868\u793a\u304c\u306a\u3055\u308c\u307e\u3057\u305f\u3002\u8272\u4f7f\u3044\u3082\u9bae\u3084\u304b\u3067\u304d\u308c\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"MVI 6603\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/YuXIe2KYNIA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u306a\u305c\u3001\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5916\u3057\u305f\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<p>\u203bsense hat \u3067\u904a\u3076\u306e\u4e00\u3064\u524d\u3068\u6b21\u306e\u8a18\u4e8b\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<br>\u21d2 previous:<strong><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=679\" target=\"_blank\" rel=\"noreferrer noopener\">sense hat\u306e\u53d6\u4ed8\u3051\u3068LED\u306b\u30c6\u30ad\u30b9\u30c8\u8868\u793a\u3092\u5b9f\u65bd<\/a><\/strong><br>\u21d2 next:<strong><a href=\"https:\/\/www.mizutan.com\/?p=717\" target=\"_blank\" rel=\"noreferrer noopener\">sense hat\u306eLED\u30de\u30c8\u30ea\u30af\u30b9\u8868\u793a<\/a><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=717\" target=\"_blank\" rel=\"noreferrer noopener\">\u306e\u5411\u304d\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5<\/a><\/strong><\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- www_\u8a18\u4e8b\u4e2d\uff13 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"8208817721\"\r\n     data-ad-format=\"rectangle\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001LED\u5168\u4f53\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br><br>\u4eca\u56de\u306f\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u3042\u308bDisplaying images \u306e\u7ae0\u306e\u5185\u5bb9\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br><br>\u8272\u3005\u306a\u6f14\u7fd2\u304c\u51fa\u6765\u307e\u3057\u305f\u304c\u3001\u524d\u56de\u306e\u6f14\u7fd2\u306e\u5185\u5bb9\u304c\u6b8b\u3063\u3066\u304a\u308a\u3001\u3046\u307e\u304f\u8868\u793a\u304c\u51fa\u6765\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3057\u305f\u3002<br><br>\u65b0\u305f\u306a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u6d88\u3048\u3066\u3057\u307e\u3063\u305f\u6f14\u7fd2\u3082\u3042\u308a\u307e\u3057\u305f\u3002\u904e\u53bb\u306e\u304c\u826f\u304b\u3063\u305f\u3088\u3046\u306b\u601d\u3063\u305f\u3082\u306e\u3082\u3042\u308a\u307e\u3057\u305f\u306d\u3002<\/p>\n\n\n\n<p>\u25a0\u300csense hat\u3067\u904a\u3076\uff01\u300d\u306e\u8a18\u4e8b\u306f\u6b21\u306e\u901a\u308a\u3067\u3059<\/p>\n\n\n\n<div class=\"blogcard\"><a href=\"https:\/\/www.mizutan.com\/wordpress\/?cat=348\" data-blogcard=\"1\"><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u57fa\u306b\u30ea\u30cb\u30e5\u30fc\u30a2\u30eb\u3057\u307e\u3057\u305f\u3002\u3000\u30002018\/10\/6 \u524d\u56de\u8a18\u4e8b\u3067\u306f sense hat\u3092raspberrypi\u306b\u53d6\u308a\u3064\u3051\u305f\u5f8c\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3063\u306664\u500b\u306e LED \u306b\u6587\u5b57\u3092\u8868\u793a\u3057\u307e\u3057\u305f\u3002 \u7b2c2\u5f3e\u3067\u3042\u308b\u672c\u8a18 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":710,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[348],"tags":[],"class_list":["post-703","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sense_hat"],"_links":{"self":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=703"}],"version-history":[{"count":21,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/703\/revisions"}],"predecessor-version":[{"id":33845,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/703\/revisions\/33845"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/710"}],"wp:attachment":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}