{"provider_name":"Hatena Blog","blog_url":"https://dekuo-03.hatenablog.jp/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdekuo-03.hatenablog.jp%2Fentry%2F2025%2F10%2F09%2F224809\" title=\"USB\u4eee\u60f3\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u30c7\u30d0\u30a4\u30b9\u306e\u633f\u629c\u3092\u76e3\u8996\u3059\u308b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u81ea\u5206\u7528\u30e1\u30e2 - \u5de5\u4f5c\u3068\u7af6\u99ac2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"USB\u4eee\u60f3\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u30c7\u30d0\u30a4\u30b9\u306e\u633f\u629c\u3092\u76e3\u8996\u3059\u308b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u81ea\u5206\u7528\u30e1\u30e2","published":"2025-10-09 22:48:09","url":"https://dekuo-03.hatenablog.jp/entry/2025/10/09/224809","image_url":null,"type":"rich","author_url":"https://blog.hatena.ne.jp/dekuo-03/","author_name":"dekuo-03","blog_title":"\u5de5\u4f5c\u3068\u7af6\u99ac2","categories":["\u6280\u8853\u30e1\u30e2","\u6280\u8853\u30e1\u30e2#Python"],"version":"1.0","description":"\u6982\u8981 USB\u4eee\u60f3\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u30c7\u30d0\u30a4\u30b9\u306e\u633f\u629c\u3092\u76e3\u8996\u3059\u308b\u305f\u3081\u306ePython\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u81ea\u5206\u7528\u306b\u30e1\u30e2\u3057\u3066\u304a\u304f\u3002 \u5b9f\u88c5 \u5fc5\u8981\u30d1\u30c3\u30b1\u30fc\u30b8 pip install PySerial pip install pywin32 \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 import threading import time import logging import win32api import win32gui import win32gui_struct from serial.tools import list_ports # \u30ed\u30ae\u30f3\u30b0\u8a2d\u5b9a logging.basicConfig(level=logging.INFO, fo\u2026","provider_url":"https://hatena.blog","width":"100%"}