{"id":524,"date":"2022-05-17T04:20:44","date_gmt":"2022-05-17T04:20:44","guid":{"rendered":"https:\/\/firedragon.jp\/nissin\/?page_id=524"},"modified":"2022-08-03T05:55:26","modified_gmt":"2022-08-03T05:55:26","slug":"%e3%83%ac%e3%83%83%e3%82%b9%e3%83%b320%ef%bc%9apython","status":"publish","type":"page","link":"https:\/\/firedragon.jp\/nissin\/%e3%83%ac%e3%83%83%e3%82%b9%e3%83%b320%ef%bc%9apython\/","title":{"rendered":"\u30ec\u30c3\u30b9\u30f319\uff1aPython"},"content":{"rendered":"<p><span style=\"color: #ff00ff;\"><strong>\u5404\u7ae0\u691c\u8a3c\u306f\u3001ESPRA\u30ad\u30c3\u30c8\u304c \u5e02\u8ca9\u57fa\u677f\u30fb\u53c2\u8003WEB\u30b5\u30a4\u30c8\u306e\u56de\u8def\u30fb\u30bd\u30d5\u30c8 \u53ca\u3073 IDE\u95a2\u9023\u3092\u5b9f\u8a3c\u51fa\u6765\u308b\u304b\u3069\u3046\u304b\u306e\u6c4e\u7528\u6027\u52d5\u4f5c\u78ba\u8a8d\u306b\u306a\u3063\u3066\u307e\u3059\u3002\u305d\u306e\u95a2\u9023\u3067\u3044\u308d\u3044\u308d\u306a\u30bd\u30d5\u30c8\u3092\u53c2\u7167\u30fb\u501f\u7528\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/strong><\/span><span style=\"color: #ff00ff;\"><strong>\u4e3b\u76ee\u7684\u306f\u3000PC\u4e0a <\/strong><\/span><span style=\"color: #ff00ff;\"><strong>Visual Studio\u304b\u3089\u306e\u3000ESP32 \u53ca\u3073 RaspiPICO \u306e\u64cd\u4f5c\u306b\u306a\u308a\u307e\u3059\u3002\u6559\u80b2\u5bfe\u5fdc\u3067<span style=\"color: #ff00ff;\">\u3059<\/span><\/strong>\u3002<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>Youtube\u306e\u753b\u9762\u306f\u3001\u304b\u306a\u3089\u305aFULL\u753b\u9762\u306b\u3057\u3066\u4e0b\u3055\u3044\u3002\u305d\u3046\u3067\u306a\u3044\u3068\u5c0f\u3055\u3044\u6587\u5b57\u304c\u5224\u5225\u51fa\u6765\u306a\u3044\u3067\u3059\u3002<\/strong><\/span><\/p>\n<p><strong>\u521d\u3081\u306b<\/strong><\/p>\n<ol>\n<li><span style=\"color: #000000;\"><a style=\"color: #000000;\" href=\"#micro1\">Micropython\u3068\u306f<\/a><\/span><\/li>\n<li><a href=\"#micro2\"><span style=\"color: #000000;\">SP32\u306e\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u66f8\u304d\u8fbc\u307f\u65b9\u6cd5<\/span><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #339966;\"><a id=\"micro1\"><\/a>Micropython<\/span><\/strong><span style=\"color: #339966;\"><strong>\u3068\u306f<\/strong><\/span><\/p>\n<p>Python\uff08\u30d1\u30a4\u30bd\u30f3\uff09\u306f\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u578b\u306e\u9ad8\u6c34\u6e96\u6c4e\u7528\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u30de\u30a4\u30af\u30ed\u30d1\u30a4\u30bd\u30f3 \u306f\u3001 ESP8266\u3084ESP32\u306a\u3069\u3067python\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3082\u306e\u3067\u3059\u3002C\u8a00\u8a9e\u3067\u8a18\u8ff0\u3055\u308c\u30de\u30a4\u30af\u30ed\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u4e0a\u3067\u306e\u52d5\u4f5c\u306b\u6700\u9069\u5316\u3055\u308c\u305fPython 3\u306e\u51e6\u7406\u7cfb\u3067\u3059\u3002<br \/>\nMicroPython \u306f\u5b8c\u5168\u306aPython\u30b3\u30f3\u30d1\u30a4\u30e9\u304a\u3088\u3073\u30de\u30a4\u30b3\u30f3\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u30e9\u30f3\u30bf\u30a4\u30e0\u3092\u542b\u307f\u307e\u3059\u3002\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u3092\u5373\u6642\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u5bfe\u8a71\u578b\u30d7\u30ed\u30f3\u30d7\u30c8 (<strong><span style=\"color: #ff0000;\">REPL\uff08\u82f1\u8a9e\u7248\uff09<\/span><\/strong>) \u3082\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002MicroPython \u306b\u306fPython\u306e\u30b3\u30a2\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u307f\u306a\u3089\u305a\u3001\u4f4e\u30ec\u30a4\u30e4\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u7fa4\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #000000;\">Micropython\u3068\u306f<\/span>\u7c21\u5358\u306b\u8a00\u3048\u3070\u3001ESP8266\u3084ESP32\u306a\u3069\u3067python\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u7269\u3067\u3059\u3002<\/p>\n<p>Python\u30d5\u30a1\u30a4\u30eb\u3092\u30de\u30a4\u30b3\u30f3\u306b\u8aad\u307f\u8fbc\u307f\u76f4\u63a5\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<strong>\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u8a00\u8a9e\u3068\u3057\u3066\uff11\u30b3\u30de\u30f3\u30c9\u305a\u3064\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n<p><span style=\"color: #339966;\"><strong><a id=\"micro2\"><\/a>ESP32\u306e<\/strong><strong>\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u66f8\u304d\u8fbc\u307f\u65b9\u6cd5<\/strong><\/span><\/p>\n<p>\u66f8\u304d\u8fbc\u3080\u65b9\u6cd5\u3068\u3057\u3066<\/p>\n<ol>\n<li><a href=\"#COMD\">\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3<\/a><\/li>\n<li><a href=\"#GUI\">GUI\u30c4\u30fc\u30eb<\/a><\/li>\n<\/ol>\n<p>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong><a id=\"COMD\"><\/a>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u7de8\uff08\u63a8\u5968\uff09<\/strong><\/p>\n<p><u><a href=\"https:\/\/micropython.org\/download#esp32\"><span style=\"color: #ff00ff;\"><strong>MicroPython\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/strong><\/span><\/a><\/u>\u306b\u79fb\u52d5\u3057\u3066\u9806\u756a\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u52d5\u753b\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002\u82f1\u6587\u3067\u3059\u3002<\/p>\n<div id=\"limited-state\" class=\"attached-message style-scope ytd-watch-flexy\"><a href=\"https:\/\/www.youtube.com\/watch?v=lvmNLuHj25o\"><span style=\"color: #ff00ff;\"><strong>Esp32Micropython\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb-esp32\u306bmicropython\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/strong><\/span><\/a><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div class=\"attached-message style-scope ytd-watch-flexy\"><strong><span style=\"color: #0000ff;\">\u3007\u3000<\/span><span style=\"color: #0000ff;\">E<\/span><span style=\"color: #0000ff;\">SP32\u306b\u3001MicroPython\u3092\u7d44\u307f\u8fbc\u307f\u307e\u3059\uff08\u89e3\u8aac\u9014\u4e2d\u3067\u5207\u308c\u307e\u3059\uff09<\/span><\/strong><\/div>\n<div><\/div>\n<div><a href=\"https:\/\/www.youtube.com\/watch?v=y4rxIuUZWjQ\">Youtube\u3067\u306e\u753b\u8cea\u306f\u3001\u5fc5\u305a\u30001080P60 HD (\u9ad8\u753b\u8cea\u30e2\u30fc\u30c9)\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\uff01\uff01<\/a><\/div>\n<p style=\"text-align: left;\"><a href=\"https:\/\/www.youtube.com\/watch?v=cXVkO8leUO4\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-967 alignleft\" src=\"https:\/\/firedragon.jp\/nissin\/wp-content\/uploads\/2022\/05\/mq2-1-1.jpg\" alt=\"\" width=\"320\" height=\"180\" srcset=\"https:\/\/firedragon.jp\/nissin\/wp-content\/uploads\/2022\/05\/mq2-1-1.jpg 320w, https:\/\/firedragon.jp\/nissin\/wp-content\/uploads\/2022\/05\/mq2-1-1-300x169.jpg 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">Termterm\u306f\u3001Teraterm(\u30c6\u30e9\u30bf\u30fc\u30e0)\u306e\u9593\u9055\u3044\u3067\u3059<\/p>\n<p><strong><span style=\"color: #0000ff;\">\u3007\u3000ESP32\u3067MicroPython\u3092\u4f7f\u3063\u3066L\u30c1\u30ab\u3059\u308b\u52d5\u753b\u3067\u3059\u3002uPyCraft\u3092\u8d77\u52d5\u3057\u3066\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30bd\u30d5\u30c8\u3092\u8d77\u52d5\u3057\u3066\u307e\u3059<\/span><\/strong><\/p>\n<a href=\"https:\/\/www.youtube.com\/watch?v=DqRsukqQFqQ\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-968\" src=\"https:\/\/firedragon.jp\/nissin\/wp-content\/uploads\/2022\/05\/mq20.jpg\" alt=\"\" width=\"320\" height=\"180\" srcset=\"https:\/\/firedragon.jp\/nissin\/wp-content\/uploads\/2022\/05\/mq20.jpg 320w, https:\/\/firedragon.jp\/nissin\/wp-content\/uploads\/2022\/05\/mq20-300x169.jpg 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/a>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong><a id=\"GUI\"><\/a>GUI\u7de8<\/strong><\/p>\n<p><u><a href=\"https:\/\/www.espressif.com\/en\/support\/download\/other-tools\"><strong><span style=\"color: #ff00ff;\">Espressif(esp32\u306e\u958b\u767a\u5143)\u306e\u30da\u30fc\u30b8<\/span><\/strong><\/a><\/u><\/p>\n<p>REPL\uff08\u5bfe\u8a71\u74b0\u5883\uff09\u3000uPyCraft\u672c\u4f53\u306f\u3001\u4e0b\u8a18\u30b5\u30a4\u30c8\u304b\u3089 Download \u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p><u><a href=\"https:\/\/randomnerdtutorials.com\/uPyCraftWindows\"><span style=\"color: #ff00ff;\"><strong>uPyCraft\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/strong><\/span><\/a><\/u><\/p>\n<p>\u4e0b\u8a18\u52d5\u753b\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002\u82f1\u6587\u3067\u3059\u3002<\/p>\n<p><strong><span style=\"color: #ff00ff;\"><a style=\"color: #ff00ff;\" href=\"https:\/\/www.youtube.com\/watch?v=VefgDdWuk8Q\">[ESP32#5] microPython and uPyCraft Tool | Getting started<\/a><\/span><\/strong><\/p>\n<p><span style=\"color: #339966;\"><strong>\u3007\u3000<\/strong><\/span><strong><span style=\"color: #339966;\">\u30b5\u30f3\u30d7\u30eb\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u89e3\u8aac<\/span><\/strong><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>import time<br \/>\n<span style=\"color: #0000ff;\"><strong>\u3000time \u2013 \u6642\u9593\u3092\u6271\u3046\u95a2\u6570<\/strong><\/span><\/p>\n<p>from machine import Pin<br \/>\n<span style=\"color: #0000ff;\"><strong>\u3000I\/O \u30d4\u30f3\u306e\u5236\u5fa1<\/strong><\/span><\/p>\n<p>led = Pin(13,Pin.OUT)<br \/>\n<strong>\u3000<span style=\"color: #0000ff;\">pin: \u8a2d\u5b9a\u3057\u305f\u3044\u30d4\u30f3\u306e\u756a\u53f7\u3000\u3000\uff27PIO\u300013\u30d4\u30f3\u4f7f\u7528\u3067\u3059\u3002<\/span><\/strong><br \/>\n<span style=\"color: #0000ff;\"><strong>\u3000mode: OUTPUT(\u51fa\u529b)<\/strong><\/span><\/p>\n<p>#while True:<br \/>\n<strong>while\u6587\u306f\u3001\u30b3\u30e1\u30f3\u30c8\u306b\u3057\u3066\u307e\u3059\u3002<\/strong><\/p>\n<p>led.value(1)<br \/>\ntime.sleep_ms(2000)<br \/>\nled.value(0)<br \/>\ntime.sleep_ms(2000)<br \/>\nled.value(1)<br \/>\ntime.sleep_ms(2000)<br \/>\nled.value(0)<br \/>\ntime.sleep_ms(2000)<br \/>\nled.value(1)<br \/>\ntime.sleep_ms(2000)<br \/>\nled.value(0)<br \/>\ntime.sleep_ms(2000)<\/p>\n<p><strong><span style=\"color: #0000ff;\">\u3053\u3053\u306f\u3001\u51fa\u529b\u30dd\u30fc\u30c8\u3092high,Low \u7e70\u308a\u8fd4\u3057\u3066\u307e\u3059\u3002\u5358\u7d14\u306b\u7e70\u308a\u8fd4\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u3002<\/span><\/strong><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>GPIO\u306e\u5165\u51fa\u529b\u306f\u3001\u4e0b\u8a18\u30b5\u30a4\u30c8\u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p><strong><span style=\"color: #ff00ff;\"><a style=\"color: #ff00ff;\" href=\"https:\/\/lang-ship.com\/blog\/work\/esp32-gpio-output\/\">ESP32\u306eGPIO\u51fa\u529b\u306b\u3064\u3044\u3066<\/a><\/span><\/strong><\/p>\n<p><strong><span style=\"color: #339966;\">\u3007\u3000\u30c7\u30e2\u30bd\u30d5\u30c8\uff08\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\\Arduino\\pyhon<\/span><\/strong><strong><span style=\"color: #339966;\">\uff09<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">\u56de\u8def\u56f3\u3000\u3068\u3000\u30c7\u30e2\u30bd\u30d5\u30c8\u306f\u3001\u30b5\u30dd\u30fc\u30c8\u5951\u7d04\u306e\u304a\u5ba2\u69d8\u306e\u307f\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1><\/h1>\n","protected":false},"excerpt":{"rendered":"<p>\u5404\u7ae0\u691c\u8a3c\u306f\u3001ESPRA\u30ad\u30c3\u30c8\u304c \u5e02\u8ca9\u57fa\u677f\u30fb\u53c2\u8003WEB\u30b5\u30a4\u30c8\u306e\u56de\u8def\u30fb\u30bd\u30d5\u30c8 \u53ca\u3073 IDE\u95a2\u9023\u3092\u5b9f\u8a3c\u51fa\u6765\u308b\u304b\u3069\u3046\u304b\u306e\u6c4e\u7528\u6027\u52d5\u4f5c\u78ba\u8a8d\u306b\u306a\u3063\u3066\u307e\u3059\u3002\u305d\u306e\u95a2\u9023\u3067\u3044\u308d\u3044\u308d\u306a\u30bd\u30d5\u30c8\u3092\u53c2\u7167\u30fb\u501f\u7528\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u4e3b\u76ee\u7684\u306f\u3000PC\u4e0a Visua&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"content-type":"","footnotes":""},"tags":[],"class_list":["post-524","page","type-page","status-publish","article cf"],"_links":{"self":[{"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/pages\/524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/comments?post=524"}],"version-history":[{"count":65,"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/pages\/524\/revisions"}],"predecessor-version":[{"id":1847,"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/pages\/524\/revisions\/1847"}],"wp:attachment":[{"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/media?parent=524"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/firedragon.jp\/nissin\/wp-json\/wp\/v2\/tags?post=524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}