{"id":149,"date":"2024-05-31T13:45:54","date_gmt":"2024-05-31T04:45:54","guid":{"rendered":"http:\/\/uto.lab-somehow.net\/?p=149"},"modified":"2024-05-31T13:48:52","modified_gmt":"2024-05-31T04:48:52","slug":"%e4%bb%ae%e6%83%b3%e7%92%b0%e5%a2%83wsl2%e4%b8%8a%e3%81%ae%e9%96%8b%e7%99%ba%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a%e3%81%a8raspberry-pi-pico%e3%82%92%e6%8e%a5%e7%b6%9a%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/uto.lab-somehow.net\/?p=149","title":{"rendered":"\u4eee\u60f3\u74b0\u5883(WSL2)\u4e0a\u306e\u958b\u767a\u30b3\u30f3\u30c6\u30ca\u3068Raspberry Pi Pico\u3092\u63a5\u7d9a\u3059\u308b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>\u306f\u3058\u3081\u306b<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Thonny\u3092\u5229\u7528\u3057\u3066\u884c\u3046<strong>Raspberry Pi Pico\u958b\u767a<\/strong>\u306e\u74b0\u5883\u69cb\u7bc9\u3068\u554f\u984c\u70b9<\/strong><\/h3>\n\n\n\n<p>Raspberry Pi Pico(\u4ee5\u964dPico\u3068\u8a18\u8f09)\u3092\u5229\u7528\u3057\u305f\u958b\u767a\u3092\u884c\u3046\u969b\u306e\u958b\u767a\u74b0\u5883\u3067\u306fIDE\u3068\u3057\u3066Thonny\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u591a\u304f\u898b\u3089\u308c\u307e\u3059\u3002\u5b9f\u969b\u306bWindows\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u5229\u7528\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u5927\u5909\u5bb9\u6613\u306b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u5b8c\u4e86\u3057\u3001\u52d5\u4f5c\u78ba\u8a8d(L\u30c1\u30ab)\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u5b9f\u969b\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u958b\u767a &nbsp;\u3092\u8003\u3048\u308b\u3068\u3044\u304f\u3064\u304b\u306e\u554f\u984c\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Git\u3092\u5229\u7528\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u7ba1\u7406\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u3001Thonny\u304b\u3089\u306e\u76f4\u63a5\u7684\u306aGit\u9023\u643a\u6a5f\u80fd\u304c\u306a\u3044\u3002<\/li>\n\n\n\n<li>\u8907\u6570\u30e1\u30f3\u30d0\u3067\u306e\u958b\u767a\u3092\u884c\u3046\u5834\u5408\u3001\u958b\u767a\u74b0\u5883\u306e\u5dee\u5206\u306e\u767a\u751f\u9632\u6b62\u304c\u96e3\u3057\u3044\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u306a\u3069<\/p>\n\n\n\n<p>\u4ee5\u4e0a\u306e\u70b9\u304b\u3089\u3001\u500b\u4eba\u3068\u3057\u3066Thonny\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u975e\u5e38\u306b\u5229\u7528\u3057\u3084\u3059\u3044\u53cd\u9762\u3001\u8907\u6570\u4eba\u3067\u958b\u767a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u884c\u3046\u969b\u306b\u306f\u591a\u5c11\u4e0d\u81ea\u7531\u3059\u308b\u70b9\u304c\u3042\u308b\u3068\u3082\u8a00\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3082\u3061\u308d\u3093Windows\u4e0a\u306b\u76f4\u63a5Git\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u5229\u7528\u3059\u308b\u306a\u3069\u56de\u907f\u65b9\u6cd5\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u53ef\u80fd\u3067\u3042\u308c\u3070\u958b\u767a\u306b\u5fc5\u8981\u306a\u64cd\u4f5c\u4e00\u3064\u306eIDE\u4e0a\u3067\u6e08\u307e\u305b\u3089\u308c\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>VSCode\u306e\u958b\u767a\u30b3\u30f3\u30c6\u30ca\u3092\u5229\u7528\u3057\u305f\u74b0\u5883\u306e\u69cb\u7bc9\u3068\u554f\u984c\u70b9<\/strong><\/h3>\n\n\n\n<p>\u524d\u8ff0\u306e\u89b3\u70b9\u304b\u3089\u3001\u793e\u5185\u3067\u3082\u5229\u7528\u5b9f\u7e3e\u304c\u3042\u308b\u74b0\u5883\u3067\u3042\u308bVSCode\u62e1\u5f35\u6a5f\u80fd\u306e<code>devcontainer<\/code>\u3092\u5229\u7528\u3057\u3066\u958b\u767a\u74b0\u5883\u81ea\u4f53\u3092\u30b3\u30f3\u30c6\u30ca\u5316\u3059\u308b\u624b\u6cd5\u3067\u30b9\u30e0\u30fc\u30ba\u306a\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u3092\u691c\u8a0e\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u3001<code>Windows PC + WSL2(Ubuntu) + \u958b\u767a\u30b3\u30f3\u30c6\u30ca<\/code>\u3068\u3044\u3046\u72b6\u614b\u306b\u306a\u308a\u3001\u4eee\u60f3\u74b0\u5883\u4e0a\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308bDocker\u30b3\u30f3\u30c6\u30ca\u304b\u3089Windows\u306bUSB\u63a5\u7d9a\u3057\u3066\u3044\u308bPico\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u4f5c\u3055\u305b\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u69cb\u6210\u3067\u958b\u767a\u30b3\u30f3\u30c6\u30ca\u304b\u3089Pico\u306b\u63a5\u7d9a\u30fb\u52d5\u4f5c\u3055\u305b\u308b\u3053\u3068\u306f\u3067\u304d\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u958b\u767a\u30b3\u30f3\u30c6\u30ca\u3068Pico\u306e\u63a5\u7d9a\u306b\u304a\u3051\u308b\u8ab2\u984c<\/strong><\/h3>\n\n\n\n<p>\u4eee\u60f3\u74b0\u5883\u4e0a\u306e\u958b\u767a\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u7269\u7406\u7684\u306aUSB\u30c7\u30d0\u30a4\u30b9\u3067\u3042\u308bPico\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u306f\u3001\u3044\u304f\u3064\u304b\u306e\u6280\u8853\u7684\u306a\u8ab2\u984c\u3092\u4f34\u3044\u307e\u3059\u3002\u901a\u5e38\u3001Docker\u30b3\u30f3\u30c6\u30ca\u306f\u30db\u30b9\u30c8\u30de\u30b7\u30f3\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u96e3\u3057\u3044\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>1. <strong>USB\u30c7\u30d0\u30a4\u30b9\u306e\u8a8d\u8b58<\/strong>: \u958b\u767a\u30b3\u30f3\u30c6\u30ca\u304b\u3089Pico\u3092\u8a8d\u8b58\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u30db\u30b9\u30c8\u30de\u30b7\u30f3\uff08Windows\uff09\u304b\u3089\u4eee\u60f3\u74b0\u5883\uff08WSL2\uff09\u3092\u7d4c\u7531\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u306bUSB\u63a5\u7d9a\u3092\u30d6\u30ea\u30c3\u30b8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>2. <strong>\u30c9\u30e9\u30a4\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong>: Pico\u3092\u6b63\u3057\u304f\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u5bfe\u5fdc\u3059\u308b\u30c9\u30e9\u30a4\u30d0\u3092\u4eee\u60f3\u74b0\u5883\u304a\u3088\u3073\u30b3\u30f3\u30c6\u30ca\u5185\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>usbipd-win\u3092\u5229\u7528\u3057\u305f\u74b0\u5883\u69cb\u7bc9<\/strong><\/h2>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u8ab2\u984c\u3092\u514b\u670d\u3059\u308b\u305f\u3081\u306b\u3001<code>usbipd-win<\/code>\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30db\u30b9\u30c8\u30de\u30b7\u30f3\u306eUSB\u30c7\u30d0\u30a4\u30b9\u3092WSL2\u306e\u4eee\u60f3\u74b0\u5883\u304a\u3088\u3073\u958b\u767a\u30b3\u30f3\u30c6\u30ca\u306b\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5\u3092\u6a21\u7d22\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>usbipd-win\u3068\u306f<\/strong><\/h3>\n\n\n\n<p>usbipd-win\u3068\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u306b\u63a5\u7d9a\u3055\u308c\u305fUSB\u30c7\u30d0\u30a4\u30b9\u3092\u307b\u304b\u306e\u30de\u30b7\u30f3\uff08Hyper-V\u3084WSL\uff09\u306b\u5171\u6709\u3059\u308b\u305f\u3081\u306eWindows\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e8b\u524d\u6e96\u5099<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows\u306b\u4ee5\u4e0b\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n<ul class=\"wp-block-list\">\n<li>WSL2(Ubuntu)<\/li>\n\n\n\n<li>VSCode<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Ubuntu\u4e0a\u306b\u4ee5\u4e0b\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n<ul class=\"wp-block-list\">\n<li>DockerEngine<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. usbipd-win\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/h3>\n\n\n\n<p>\u203b<code>usbipd-win<\/code>\u306e\u8a73\u7d30\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084\u5229\u7528\u624b\u9806\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows\/wsl\/connect-usb\">\u3053\u3061\u3089<\/a>\u306eMicrosoft\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>winget install --interactive --exact dorssel.usbipd-win<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. USB\u30c7\u30d0\u30a4\u30b9\u306e\u63a5\u7d9a\u72b6\u6cc1\u3092\u78ba\u8a8d<\/strong><\/h3>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089<code>usbipd<\/code>\u30b3\u30de\u30f3\u30c9\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002Pico\u3092\u63a5\u7d9a\u3057\u305f\u72b6\u614b\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u304b\u3089\u63a5\u7d9a\u72b6\u6cc1\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>usbipd list<\/code><\/pre>\n\n\n\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306bPC\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30c7\u30d0\u30a4\u30b9\u4e00\u89a7\u3068\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u4eca\u56de\u306e\u51fa\u529b\u4f8b\u3067\u306f<code>USB \u30b7\u30ea\u30a2\u30eb \u30c7\u30d0\u30a4\u30b9 (COM3) &nbsp;<\/code>\u3068\u8868\u8a18\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u304cPico\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u51fa\u529b\u4f8b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Users\\hoge&gt;usbipd list\nConnected:\nBUSID  VID:PID    DEVICE                                                        STATE\n2-3    2e8a:0005  USB \u30b7\u30ea\u30a2\u30eb \u30c7\u30d0\u30a4\u30b9 (COM3)                                  Not shared\n2-4    046d:c33c  G512, USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9, \u4eee\u60f3 HID \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af (VHF) HID...  Not shared\n2-6    04f2:b6f0  Web Camera - HD, Face Authentication Sensor, Camera DFU D...  Not shared\n2-10   8087:0033  \u30a4\u30f3\u30c6\u30eb(R) \u30ef\u30a4\u30e4\u30ec\u30b9 Bluetooth(R)                           Not shared\n\nPersisted:\nGUID                                  DEVICE\n\n\nC:\\Users\\hoge&gt;<\/code><\/pre>\n\n\n\n<p>\u3069\u306e\u30c7\u30d0\u30a4\u30b9\u304cPico\u304b\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u30c7\u30d0\u30a4\u30b9\u3092\u629c\u304d\u5dee\u3057\u3057\u3066\u524d\u5f8c\u306b`usbipd list`\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u4f55\u304c\u5897\u3048\u305f\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. \u30c7\u30d0\u30a4\u30b9\u3092\u5171\u6709\u3059\u308b<\/strong><\/h3>\n\n\n\n<p>\u5148\u307b\u3069\u306e`usbipd list`\u306e\u7d50\u679c\u306eBUSID\u3092\u6307\u5b9a\u3057\u3001\u30d0\u30a4\u30f3\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>usbipd bind --busid &lt;BUSID&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. \u30c7\u30d0\u30a4\u30b9\u3092WSL\u306b\u63a5\u7d9a\u3059\u308b<\/strong><\/h3>\n\n\n\n<p>\u5148\u307b\u3069\u306e<code>usbipd list<\/code>\u306e\u7d50\u679c\u306eBUSID\u3092\u6307\u5b9a\u3057\u3001\u30a2\u30bf\u30c3\u30c1\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>usbipd attach --wsl --busid &lt;BUSID&gt;<\/code><\/pre>\n\n\n\n<p>\u6210\u529f\u3059\u308b\u3068\u3001<code>usbipd list<\/code>\u306e\u7d50\u679c\u306eSTATE\u304c<code>share<\/code>\u306b\u5909\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u51fa\u529b\u4f8b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Users\\hoge&gt;usbipd list\nConnected:\nBUSID  VID:PID    DEVICE                                                        STATE\n2-3    2e8a:0005  USB \u30b7\u30ea\u30a2\u30eb \u30c7\u30d0\u30a4\u30b9 (COM3)                                  share\n2-4    046d:c33c  G512, USB \u5165\u529b\u30c7\u30d0\u30a4\u30b9, \u4eee\u60f3 HID \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af (VHF) HID...  Not shared\n2-6    04f2:b6f0  Web Camera - HD, Face Authentication Sensor, Camera DFU D...  Not shared\n2-10   8087:0033  \u30a4\u30f3\u30c6\u30eb(R) \u30ef\u30a4\u30e4\u30ec\u30b9 Bluetooth(R)                           Not shared\n\nPersisted:\nGUID                                  DEVICE\n\n\nC:\\Users\\hoge&gt;<\/code><\/pre>\n\n\n\n<p>WSL2\u306bUSB\u30c7\u30d0\u30a4\u30b9\u304c\u5171\u6709\u3055\u308c\u305f\u305f\u3081\u3001Ubuntu\u304b\u3089\u3082USB\u30c7\u30d0\u30a4\u30b9\u304c\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u51fa\u529b\u4f8b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@hogehoge:~\/workspaces# lsusb\nBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub\nBus 001 Device 002: ID 2e8a:0005 MicroPython Board in FS mode\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\nroot@hogehoge:~\/workspaces#<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5. WSL\u4e0a\u3067USB\u30c7\u30d0\u30a4\u30b9\u306e\u63a5\u7d9a\u5148\u306e\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3092\u78ba\u8a8d\u3059\u308b<\/strong><\/h3>\n\n\n\n<p>\u958b\u767a\u30b3\u30f3\u30c6\u30ca\u304b\u3089USB\u30c7\u30d0\u30a4\u30b9\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b\u30c7\u30d0\u30a4\u30b9\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u306f\u30de\u30a6\u30f3\u30c8\u3059\u308b\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dmesg | grep cdc_acm | grep tty<\/code><\/pre>\n\n\n\n<p>\u51fa\u529b\u4f8b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@hogehoge:~\/workspaces# dmesg | grep cdc_acm | grep tty\n&#91; &nbsp; 88.170736] cdc_acm 1-1:1.0: ttyACM0: USB ACM device\nroot@hogehoge:~\/workspaces#<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u3001\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306f<code>ttyACM0<\/code>\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6. \u958b\u767a\u30b3\u30f3\u30c6\u30ca\u3067\u30c7\u30d0\u30a4\u30b9\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b<\/strong><\/h3>\n\n\n\n<p>\u4eca\u56de\u306f<code>devcontainer<\/code>\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001<code>devcontainer.json<\/code>\u306e\u8a2d\u5b9a\u306b\u4ee5\u4e0b\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u5148\u307b\u3069\u78ba\u8a8d\u3057\u305f\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8(<code>ttyACM0<\/code>)\u3092\u30de\u30a6\u30f3\u30c8\u3057\u3066\u958b\u767a\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203bdevcontainer\u306e\u5229\u7528\u65b9\u6cd5\u3084\u307b\u304b\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u306f\u3053\u306e\u8a18\u4e8b\u3067\u306f\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"runArgs\": &#91;\"--device=\/dev\/ttyACM0\"],<\/code><\/pre>\n\n\n\n<p>\u958b\u767a\u74b0\u5883\u3092\u30b3\u30f3\u30c6\u30ca\u3067\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u74b0\u5883\u69cb\u7bc9\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067\u62e1\u5f35\u6a5f\u80fd<code>MicroPico<\/code>\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u304c\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u307e\u3068\u3081<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows\u304b\u3089WSL2\u3078\u306eUSB\u30c7\u30d0\u30a4\u30b9\u306e\u63a5\u7d9a\u306f<code>usbipd-win<\/code>\u3092\u5229\u7528\u3057\u3066\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li>\n\n\n\n<li>WSL2\u306b\u30c7\u30d0\u30a4\u30b9\u304c\u63a5\u7d9a\u3067\u304d\u308c\u3070\u3001Docker\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u306f\u5bfe\u8c61\u30c7\u30d0\u30a4\u30b9\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3053\u3068\u3067\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4eca\u56de\u306e\u8aac\u660e\u3067\u306f\u5272\u611b\u3057\u307e\u3057\u305f\u304c\u3001\u62e1\u5f35\u6a5f\u80fd<code>MicroPico<\/code>\u3092devcontainer.json\u306b\u8ffd\u52a0\u3059\u308b\u3068\u958b\u767a\u30b3\u30f3\u30c6\u30ca\u8d77\u52d5\u5f8c\u3059\u3050\u306b\u5229\u7528\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<code>devcontainer<\/code>\u306e\u62e1\u5f35\u6a5f\u80fd\u3092\u4f75\u305b\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u975e\u5e38\u306b\u4fbf\u5229\u306a\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u53c2\u8003<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/dorssel\/usbipd-win\/releases\">usbpid-win<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/learn.microsoft.com\/ja-jp\/windows\/wsl\/connect-usb\">USB\u30c7\u30d0\u30a4\u30b9\u3092\u63a5\u7d9a\u3059\u308b<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Thonny\u3092\u5229\u7528\u3057\u3066\u884c\u3046Raspberry Pi Pico\u958b\u767a\u306e\u74b0\u5883\u69cb\u7bc9\u3068\u554f\u984c\u70b9 Raspberry Pi Pico(\u4ee5\u964dPico\u3068\u8a18\u8f09)\u3092\u5229\u7528\u3057\u305f\u958b\u767a\u3092\u884c\u3046\u969b\u306e\u958b\u767a\u74b0\u5883\u3067\u306fIDE\u3068\u3057\u3066Thonny\u3092\u5229\u7528\u3057\u3066&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-149","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/uto.lab-somehow.net\/index.php?rest_route=\/wp\/v2\/posts\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/uto.lab-somehow.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/uto.lab-somehow.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/uto.lab-somehow.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/uto.lab-somehow.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=149"}],"version-history":[{"count":5,"href":"http:\/\/uto.lab-somehow.net\/index.php?rest_route=\/wp\/v2\/posts\/149\/revisions"}],"predecessor-version":[{"id":154,"href":"http:\/\/uto.lab-somehow.net\/index.php?rest_route=\/wp\/v2\/posts\/149\/revisions\/154"}],"wp:attachment":[{"href":"http:\/\/uto.lab-somehow.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/uto.lab-somehow.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=149"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/uto.lab-somehow.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}