{"id":304,"date":"2023-09-06T09:13:59","date_gmt":"2023-09-06T00:13:59","guid":{"rendered":"https:\/\/www.aqua-informatics.jp\/?p=304"},"modified":"2023-09-06T09:17:48","modified_gmt":"2023-09-06T00:17:48","slug":"%e6%b5%9c%e6%9d%be%e3%83%9b%e3%83%88%e3%83%8b%e3%82%af%e3%82%b9c12880ma%e3%82%92raspberry-pi-pico%e3%80%81micropython%e3%81%a7%e4%bd%bf%e3%81%863","status":"publish","type":"post","link":"https:\/\/www.aqua-informatics.jp\/?p=304","title":{"rendered":"\u6d5c\u677e\u30db\u30c8\u30cb\u30af\u30b9c12880ma\u3092Raspberry Pi Pico\u3001MicroPython\u3067\u4f7f\u3046(3)"},"content":{"rendered":"\n<p>\u4e16\u306e\u4e2dWindows\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u4eba\u304c\u591a\u3044\u308f\u3051\u3067\u3001\u3057\u304b\u3082\u3001Python\u3084\u52d5\u4f5c\u306b\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307e\u3067\u4f7f\u3063\u3066\u304f\u308c\u308b\u4eba\u306f\u7a00\u3060\u308d\u3046\u304b\u3089\u3001USB\u306e\u30d7\u30e9\u30b0\u3092\u633f\u3057\u8fbc\u3081\u3070\u52d5\u304f\u3088\u3046\u306b\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u308f\u3051\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p>platform\u3068\u8a00\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3067OS\u306e\u7a2e\u985e\u3084\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3092\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u3067\u3042\u308b\u3002\u305d\u306e\u5f8c\u3001\u63a5\u7d9a\u3057\u305fPico\u306b\u5408\u8a00\u8449\u3092\u9001\u3063\u3066\u6b63\u3057\u3044\u8fd4\u4fe1\u304c\u6765\u305f\u3089O.K.<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u4e8b\u3092\u3057\u3066\u307f\u305f\u3044\u308f\u3051\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p>\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306emanufacturer\u306bMicroPython\u304c\u3042\u308b\u30dd\u30fc\u30c8\u306b\u5bfe\u3057\u3066\u5408\u8a00\u8449\u3092\u9001\u3063\u3066\u8fd4\u7b54\u3092\u5f85\u3064\u3088\u3046\u306b\u3059\u308c\u3070\u826f\u3055\u305d\u3046\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import platform\nimport serial.tools.list_ports\n\nclass ident_PC():\n\n    def __init__(self):\n\n        self.OS = platform.system()\n        self.Version = platform.version()\n        self.Platform = platform.platform()\n\n    def scan(self):\n\n        self.ports = serial.tools.list_ports.comports()\n        \n        for p in self.ports:\n\n                print(&quot;: %s&quot; % p)\n                print(&quot;device: %s&quot; % p.device)\n                print(&quot;name: %s&quot; % p.name)\n                print(&quot;description: %s&quot; % p.description)\n                print(&quot;hwid: %s&quot; % p.hwid)\n                print(&quot;vid: %s&quot; % p.vid)\n                print(&quot;pid: %s&quot; % p.pid)\n                print(&quot;serial Number: %s&quot; % p.serial_number)\n                print(&quot;location: %s&quot; % p.location)\n                print(&quot;manufacturer: %s&quot; % p.manufacturer)\n                print(&quot;product: %s&quot; % p.product)\n                print(&quot;interface: %s&quot; % p.interface)\n    \n    def chk_12880ma(self):<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e16\u306e\u4e2dWindows\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u4eba\u304c\u591a\u3044\u308f\u3051\u3067\u3001\u3057\u304b\u3082\u3001Python\u3084\u52d5\u4f5c\u306b\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307e\u3067\u4f7f\u3063\u3066\u304f\u308c\u308b\u4eba\u306f\u7a00\u3060\u308d\u3046\u304b\u3089\u3001USB\u306e\u30d7\u30e9\u30b0\u3092\u633f\u3057\u8fbc\u3081\u3070\u52d5\u304f\u3088\u3046\u306b\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u308f\u3051\u3067\u3042\u308b\u3002 pla [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":87,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_lightning_design_setting":{"layout":"default"},"footnotes":""},"categories":[7,8,5],"tags":[],"class_list":["post-304","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-python","category-5"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=304"}],"version-history":[{"count":4,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/304\/revisions"}],"predecessor-version":[{"id":310,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/posts\/304\/revisions\/310"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=\/wp\/v2\/media\/87"}],"wp:attachment":[{"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqua-informatics.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}