{"id":3550,"date":"2022-08-27T11:46:26","date_gmt":"2022-08-27T02:46:26","guid":{"rendered":"https:\/\/oohito.com\/nqthm\/?page_id=3550"},"modified":"2022-08-28T19:56:24","modified_gmt":"2022-08-28T10:56:24","slug":"mpytools","status":"publish","type":"page","link":"https:\/\/oohito.com\/nqthm\/mpytools","title":{"rendered":"MPyTools"},"content":{"rendered":"\n<p>MPyTools \u306f MicroPython \u30c7\u30d0\u30a4\u30b9\u306e\u958b\u767a\u3092\u652f\u63f4\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u7fa4\u3067\u3059\u3002Pharo Smalltalk \u306b\u3088\u308a\u4f5c\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>MPyTools \u306f\u4e3b\u306b\u4ee5\u4e0b\u306e\uff12\u3064\u304b\u3089\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>MicroPython \u30c7\u30d0\u30a4\u30b9\u3068\u901a\u4fe1\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb<\/li><li>Smalltalk \u3067\u66f8\u304b\u308c\u305f\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u3092 MicroPython \u306e\u30b3\u30fc\u30c9\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb<\/li><\/ul>\n\n\n\n<p>MPyTools \u3092\u4f7f\u3048\u3070 Pharo \u306e\u30b7\u30b9\u30c6\u30e0\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u3063\u3066 MicroPython \u30c7\u30d0\u30a4\u30b9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 MicroPython \u30c7\u30d0\u30a4\u30b9\u306b\u8ee2\u9001\u3057\u3066\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">MPyTool<\/h1>\n\n\n\n<p>MPyTool \u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f MicroPython \u30c7\u30d0\u30a4\u30b9\u3068\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u3057\u307e\u3059\u3002 MicroPython \u306e\u5f0f\u3092\u30c7\u30d0\u30a4\u30b9\u306b\u9001\u4fe1\u3057\u3066\u3001\u305d\u306e\u7d50\u679c\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3084\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<p>1+2\u3092\u8a08\u7b97\u3057\u3066\u7d50\u679c\u3092\u30a4\u30f3\u30b9\u30da\u30af\u30bf\u306b\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>| mp |\nmp := MPyTool new.\nmp useSerial.\n(mp evaluate: '1+2') inspect.<\/code><\/pre>\n\n\n\n<p>Hello \u3068\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 main.py \u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MPyTool new\n  useSerial;\n  upload: 'print(\"Hello\")' fileNamed: 'main.py'.<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">MicroPythonCoder<\/h1>\n\n\n\n<p>MicroPythonCoder \u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001Smalltalk \u306e\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u304b\u3089 MicroPython \u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a Smalltalk \u306e\u30b3\u30fc\u30c9\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>helloWorld\n  self isFunction: true.\n  self print: 'Hello, World!'<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306a MicroPython \u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def hello_world():\n  print(\"Hello, World!\")<\/code><\/pre>\n\n\n\n<p>MicroPython \u30c7\u30d0\u30a4\u30b9\u306b\u306f\u305f\u304f\u3055\u3093\u306e\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002\u73fe\u5728\u3001MicroPythonCoder \u306fESP8266\/ESP32 \u30d9\u30fc\u30b9\u306e MicroPython \u3068micro:bit \u30d9\u30fc\u30b9\u306e MicroPython \u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<p>\u3042\u308b\u30af\u30e9\u30b9\u304b\u3089 MicroPython \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u751f\u6210\u3059\u308b\u306b\u306f\u3001\u305d\u306e\u30af\u30e9\u30b9\u306b #asMicroPython \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ESP8266Sample asMicroPython<\/code><\/pre>\n\n\n\n<p>\u305d\u306e\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 MicroPython \u30c7\u30d0\u30a4\u30b9\u306b\u9001\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MPyTool new\n  useSerial;\n  execute: ESP8266Sample asMicroPython.<\/code><\/pre>\n\n\n\n<p>\u751f\u6210\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 &#8216;main.py&#8217; \u30d5\u30a1\u30a4\u30eb\u306b\u683c\u7d0d\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MPyTool new\n  useSerial;\n  upload: ESP8266Sample asMicroPython fileNamed: 'main.py'.<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">MPyToolGUI<\/h1>\n\n\n\n<p>MPyToolGUI \u306f\u3001MPyTool\u3068 MicroPythonCoder \u306e\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/EiichiroIto\/MPyTools\/master\/images\/screenshot1.png\" alt=\"Screenshot1\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>SpMPyTool new open<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h1>\n\n\n\n<p>\uff08\u6e96\u5099\u4e2d\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u306e\u8ee2\u9001<\/h2>\n\n\n\n<p>\uff08\u6e96\u5099\u4e2d\uff09<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\uff08\u958b\u767a\u8005\u7528\uff09<\/h1>\n\n\n\n<pre class=\"wp-block-code\"><code>Metacello new\n    baseline: 'MPyTools';\n    repository: 'github:\/\/EiichiroIto\/MPyTools\/src';\n    load.<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u8b1d\u8f9e<\/h2>\n\n\n\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f John Malony \u306e MicroSqueak \u30d7\u30ed\u30b8\u30a7\u30af\u30c8(https:\/\/web.media.mit.edu\/~jmaloney\/microsqueak\/)\u306b\u5f71\u97ff\u3092\u53d7\u3051\u3066\u304a\u308a\u3001\u3044\u304f\u3064\u304b\u306e\u30b3\u30fc\u30c9\u306f Pharo Smalltalk \u3067\u66f8\u304d\u76f4\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MPyTools \u306f MicroPython \u30c7\u30d0\u30a4\u30b9\u306e\u958b\u767a\u3092\u652f\u63f4\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u7fa4\u3067\u3059\u3002Pharo Smalltalk \u306b\u3088\u308a\u4f5c\u3089\u308c\u3066\u3044\u307e\u3059\u3002 MPyTools \u306f\u4e3b\u306b\u4ee5\u4e0b\u306e\uff12\u3064\u304b\u3089\u306a\u308a\u307e\u3059\u3002 MicroPython &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3550","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/pages\/3550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/comments?post=3550"}],"version-history":[{"count":2,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/pages\/3550\/revisions"}],"predecessor-version":[{"id":3560,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/pages\/3550\/revisions\/3560"}],"wp:attachment":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/media?parent=3550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}