{"id":1309,"date":"2021-12-09T22:22:10","date_gmt":"2021-12-09T13:22:10","guid":{"rendered":"https:\/\/okamoto3.com\/?p=1309"},"modified":"2023-03-01T19:02:23","modified_gmt":"2023-03-01T10:02:23","slug":"freenove-raspberry-pi-starter-kit","status":"publish","type":"post","link":"https:\/\/okamoto3.com\/index.php\/2021\/12\/09\/freenove-raspberry-pi-starter-kit\/1309\/","title":{"rendered":"Freenove Raspberry pi \u30b9\u30bf\u30fc\u30bf\u30fc\u30ad\u30c3\u30c8 L\u30c1\u30ab gpiozero Python3"},"content":{"rendered":"<p>Freenove Raspberry Pi 4 B 3 B + 400\u7528\u306e\u57fa\u672c\u7684\u306a\u30b9\u30bf\u30fc\u30bf\u30fc\u30ad\u30c3\u30c8\u3001234\u30da\u30fc\u30b8\u306e\u8a73\u7d30\u306a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3001Python C Java Scratch \u30b3\u30fc\u30c9\u3001146\u30a2\u30a4\u30c6\u30e0\u300131\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3001\u7121\u306f\u3093\u3060\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9<\/p><p><center><br \/>\n<iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=tf_til&amp;t=shigeki3-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS1=1&amp;detail=1&amp;asins=B06WD5FTVD&amp;linkId=30ca1330dc4dd3e647117aae17c065c1&amp;bc1=ffffff&amp;lt1=_top&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\"><br \/>\n    <\/iframe><br \/>\n<\/center><\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/amzn.to\/3ydLVVl\">\u30a2\u30de\u30be\u30f3\u3067\u898b\u308b<\/a><\/p><figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205055.jpg?resize=750%2C422&#038;ssl=1\" alt=\"\" class=\"wp-image-1306\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205055-scaled.jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205055-scaled.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205055-scaled.jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205055-scaled.jpg?resize=1536%2C864&amp;ssl=1 1536w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205055-scaled.jpg?resize=2048%2C1152&amp;ssl=1 2048w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205055-scaled.jpg?resize=1568%2C882&amp;ssl=1 1568w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205055-scaled.jpg?resize=600%2C338&amp;ssl=1 600w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205055-scaled.jpg?w=2250&amp;ssl=1 2250w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">\u4ed8\u5c5e\u54c1<\/figcaption><\/figure><p>Raspberry Pi OS\u306a\u306e\u3067\u3001\u305d\u308c\u3089\u3057\u304fL\u30c1\u30ab\u3002<\/p><ul class=\"wp-block-list\"><li>gpiozero<\/li>\n\n<li>Python3 <\/li><\/ul><p>\u3067\u3084\u3063\u3066\u307f\u3088\u3002<\/p><p class=\"has-text-align-center\">WiringPi\u3044\u307e\u307e\u3067\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p><h2 class=\"wp-block-heading\">\u914d\u7dda<\/h2><figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"441\" height=\"269\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205937-01_copy_441x269.jpeg?resize=441%2C269&#038;ssl=1\" alt=\"\" class=\"wp-image-1305\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205937-01_copy_441x269.jpeg?w=441&amp;ssl=1 441w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205937-01_copy_441x269.jpeg?resize=300%2C183&amp;ssl=1 300w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><figcaption class=\"wp-element-caption\">\u30d5\u30e9\u30c3\u30c8\u30b1\u30fc\u30d6\u30eb\u306e\u63a5\u7d9a<\/figcaption><\/figure><figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"547\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_211101-01_copy_955x696.jpeg?resize=750%2C547&#038;ssl=1\" alt=\"\" class=\"wp-image-1304\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_211101-01_copy_955x696.jpeg?w=955&amp;ssl=1 955w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_211101-01_copy_955x696.jpeg?resize=300%2C219&amp;ssl=1 300w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_211101-01_copy_955x696.jpeg?resize=768%2C560&amp;ssl=1 768w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_211101-01_copy_955x696.jpeg?resize=600%2C437&amp;ssl=1 600w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">\u3056\u3063\u304f\u308a<\/figcaption><\/figure><figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"497\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/1639053705659.jpg?resize=750%2C497&#038;ssl=1\" alt=\"\" class=\"wp-image-1307\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/1639053705659-scaled.jpg?resize=1024%2C679&amp;ssl=1 1024w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/1639053705659-scaled.jpg?resize=300%2C199&amp;ssl=1 300w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/1639053705659-scaled.jpg?resize=768%2C509&amp;ssl=1 768w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/1639053705659-scaled.jpg?resize=1536%2C1018&amp;ssl=1 1536w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/1639053705659-scaled.jpg?resize=2048%2C1358&amp;ssl=1 2048w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/1639053705659-scaled.jpg?resize=1568%2C1040&amp;ssl=1 1568w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/1639053705659-scaled.jpg?resize=600%2C398&amp;ssl=1 600w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/1639053705659-scaled.jpg?w=2250&amp;ssl=1 2250w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">LED\u307e\u308f\u308a<\/figcaption><\/figure><p><strong>LED<\/strong>\u306f<strong>GPIO18(12\u756a\u30d4\u30f3)<\/strong>\u306b\u5dee\u3057\u8fbc\u3093\u3060\u3002<strong>\u30d7\u30e9\u30de\u30a4<\/strong>\u3042\u308b\u3067\u3002<\/p><p>\u30d6\u30ec\u30c3\u30c8\u30dc\u30fc\u30c9\u306b\u62b5\u6297\u5668\u3092\u5dee\u3059\u3068\u304d\u306b\u3001\u8db3\u304c\u66f2\u304c\u308b\u3002\u9762\u5012\u3067\u3082\u30e9\u30b8\u30aa\u30da\u30f3\u30c1\u3067\u3084\u3063\u305f\u65b9\u304c\u7121\u96e3\u3058\u3083\u3002<\/p><p>\u30b8\u30e3\u30f3\u30d1\u30fc\u7dda\u3082\u5dee\u3057\u8fbc\u307f\u304c\u30ab\u30c3\u30c1\u30ab\u30c1\u3058\u3083\u3002<\/p><p>\u307e\u3042\u3001\u5168\u4f53\u7684\u306b\u306f\u30a8\u30a8\u611f\u3058\u3058\u3083\u3051\u3069\u306a\u3002<\/p><h2 class=\"wp-block-heading\">\u30d7\u30ed\u30b0\u30e9\u30e0<\/h2><p>\u308f\u3057\u306f\u3001\/home\/pi\/projects\/lchika\u306b\u4f5c\u3063\u305f\u3002<\/p><ul class=\"wp-block-list\"><li><strong>cd \/home\/pi\/projects<\/strong><\/li>\n\n<li><strong>mkdir lchija<\/strong><\/li>\n\n<li><strong>cd lchija<\/strong><\/li>\n\n<li><strong>nano lchika.py<\/strong><\/li><\/ul><p>\u65b0\u3057\u3044\u6d41\u5100<strong>gpiozero<\/strong>\u4f7f\u3046\u3067<strong>\u3002<\/strong><\/p><pre class=\"wp-block-preformatted\">from gpiozero import LED<br>from time import sleep<br>led = LED(18)<br>while True:<br>    led.on()<br>    sleep(1)<br>    led.off()<br>    sleep(1)<\/pre><p>ctrl+z\u3067\u4fdd\u5b58<\/p><h2 class=\"wp-block-heading\">\u5b9f\u884c<\/h2><ul class=\"wp-block-list\"><li><strong>python3 lchika.py<\/strong><\/li><\/ul><figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"409\" height=\"298\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_211633-01_copy_409x298.jpeg?resize=409%2C298&#038;ssl=1\" alt=\"\" class=\"wp-image-1308\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_211633-01_copy_409x298.jpeg?w=409&amp;ssl=1 409w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_211633-01_copy_409x298.jpeg?resize=300%2C219&amp;ssl=1 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><figcaption class=\"wp-element-caption\">\u70b9\u3044\u305f\u3067<\/figcaption><\/figure><h2 class=\"wp-block-heading\"><strong>\u505c\u6b62<\/strong><\/h2><p>ctrl+c<\/p><p>\u4ee5\u4e0a\uff01<\/p><hr class=\"wp-block-separator has-css-opacity\"\/><figure class=\"wp-block-embed is-type-wp-embed is-provider-sgg-039-s wp-block-embed-sgg-039-s\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"URZbFM82KZ\"><a href=\"https:\/\/okamoto3.com\/index.php\/2021\/12\/10\/gpiozero-pinout\/1321\/\">raspberry pi \u30d4\u30f3\u78ba\u8a8d pinout \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;raspberry pi \u30d4\u30f3\u78ba\u8a8d pinout \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&#8221; &#8212; sGG&#039;s\" src=\"https:\/\/okamoto3.com\/index.php\/2021\/12\/10\/gpiozero-pinout\/1321\/embed\/#?secret=URZbFM82KZ\" data-secret=\"URZbFM82KZ\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\">\u52d5\u304b\u306a\u3044\u5834\u5408\u306e\u53c2\u8003<\/figcaption><\/figure><hr class=\"wp-block-separator has-css-opacity\"\/><div class=\"wp-block-image is-style-rounded\"><figure class=\"aligncenter size-thumbnail\"><a href=\"https:\/\/youtube.com\/user\/hishigeki3\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/10\/Screenshot_2021-10-25-07-00-51-667_com.google.android.youtube-01_copy_270x246.jpeg?resize=150%2C150&#038;ssl=1\" alt=\"\" class=\"wp-image-658\" srcset=\"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/10\/Screenshot_2021-10-25-07-00-51-667_com.google.android.youtube-01_copy_270x246.jpeg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/10\/Screenshot_2021-10-25-07-00-51-667_com.google.android.youtube-01_copy_270x246.jpeg?resize=100%2C100&amp;ssl=1 100w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><figcaption class=\"wp-element-caption\">\u3088\u308d\u3057\u3051\u308c\u3070\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u7533\u3057\u4e0a\u3052\u307e\u3059\uff01<\/figcaption><\/figure><\/div><hr class=\"wp-block-separator has-css-opacity\"\/><p><center><br \/>\n<iframe loading=\"lazy\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?o=9&amp;p=20&amp;l=ez&amp;f=ifr&amp;linkID=865d8e3440677383d9b2493a3354bc42&amp;t=shigeki3-22&amp;tracking_id=shigeki3-22\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"><\/iframe><br \/>\n<\/center><\/p>","protected":false},"excerpt":{"rendered":"<p>Freenove Raspberry Pi 4 B 3 B + 400\u7528\u306e\u57fa\u672c\u7684\u306a\u30b9\u30bf\u30fc\u30bf\u30fc\u30ad\u30c3\u30c8\u3001234\u30da\u30fc\u30b8\u306e\u8a73\u7d30\u306a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3001Python C Java Scratch \u30b3\u30fc\u30c9\u3001146\u30a2\u30a4\u30c6\u30e0\u300131\u30d7\u30ed\u30b8\u30a7\u30af\u30c8&hellip; <a class=\"more-link\" href=\"https:\/\/okamoto3.com\/index.php\/2021\/12\/09\/freenove-raspberry-pi-starter-kit\/1309\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Freenove Raspberry pi \u30b9\u30bf\u30fc\u30bf\u30fc\u30ad\u30c3\u30c8 L\u30c1\u30ab gpiozero Python3<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1303,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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","enabled":false},"version":2}},"categories":[23,213,149],"tags":[126],"class_list":["post-1309","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi","category-all-articles","category-production","tag-raspberry-pi","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/okamoto3.com\/wp-content\/uploads\/2021\/12\/IMG_20211209_205055-01_copy_422x295.jpeg?fit=422%2C295&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/1309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/comments?post=1309"}],"version-history":[{"count":7,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/1309\/revisions"}],"predecessor-version":[{"id":3088,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/posts\/1309\/revisions\/3088"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/media\/1303"}],"wp:attachment":[{"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/media?parent=1309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/categories?post=1309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/okamoto3.com\/index.php\/wp-json\/wp\/v2\/tags?post=1309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}