
{"id":14862,"date":"2022-08-02T16:24:56","date_gmt":"2022-08-02T07:24:56","guid":{"rendered":"https:\/\/okiraku-camera.tokyo\/blog\/?p=14862"},"modified":"2023-11-21T16:04:39","modified_gmt":"2023-11-21T07:04:39","slug":"hobonicola%e3%83%a9%e3%82%a4%e3%83%96%e3%83%a9%e3%83%aa1-6-2%e7%89%88%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/okiraku-camera.tokyo\/blog\/?p=14862","title":{"rendered":"hoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea1.6.2\u7248\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h1>\u00a0\u6982\u8981<\/h1>\n<p>hoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea1.6.2\u7248\u306e\u66f4\u65b0\u5185\u5bb9\u3001\u30d3\u30eb\u30c9\u65b9\u6cd5\u306a\u3069\u306b\u3064\u3044\u3066\u3002<\/p>\n<ul style=\"list-style-type: circle;\">\n<li>\u30ad\u30fc\u30dc\u30fc\u30c9\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u7528\u306e<strong>CH9350L<\/strong>\u3092\u4f7f\u3063\u305f\u30a2\u30c0\u30d7\u30bf\u30fc\u306e\u30b5\u30dd\u30fc\u30c8\u3002\u5f93\u6765\u304b\u3089\u306eminiUHS (<strong>MAX3421EE<\/strong>)\u7528\u3068\u30e9\u30a4\u30d6\u30e9\u30ea\u30d5\u30a1\u30a4\u30eb\u306f\u5171\u901a\u3068\u3057\u3001\u30e1\u30a4\u30f3\u30b9\u30b1\u30c3\u30c1(ino\u30d5\u30a1\u30a4\u30eb)\u3092\u5206\u3051\u305f\u3002<\/li>\n<li>RP2040 \u3092\u8f09\u305b\u305f <strong>Adafruit KB2040<\/strong> \u3068 <strong>XIAO RP2040<\/strong> \u3092hoboNicola\u30a2\u30c0\u30d7\u30bf\u30fc\u306e\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u3068\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/li>\n<li><strong>XIAO nRF52840(BLE)<\/strong> \u3092hoboNicola\u30a2\u30c0\u30d7\u30bf\u30fc\u306e\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u3068\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u3053\u306e\u3068\u304d\u3001\u30b3\u30a2\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u30b9\u30a4\u30c3\u30c1\u30b5\u30a4\u30a8\u30f3\u30b9\u306eISP1807MB\u3068\u540c\u3058 <strong>Adafruit nRF52 BSP<\/strong>\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001BLE\u95a2\u4fc2\u306e\u30b3\u30fc\u30c9\u3092\u5171\u901a\u306b\u3057\u305f\u3002<\/li>\n<li>\u5404\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306e\u76f8\u9055(\u30de\u30a4\u30b3\u30f3\u3001LED\u69cb\u6210\u3001SPI\u7528GPIO\u306a\u3069)\u3092\u30e9\u30a4\u30d6\u30e9\u30ea\u5074\u3067\u5438\u53ce\u3059\u308b\u305f\u3081\u306e\u4fee\u6b63\u3084\u30b9\u30ea\u30fc\u30d7\u95a2\u4fc2\u306e\u898b\u76f4\u3057\u3092\u884c\u3063\u305f\u3002<\/li>\n<\/ul>\n<h2>\u30bd\u30fc\u30b9\u4e00\u5f0f\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n<p>\u30bd\u30fc\u30b9\u4e00\u5f0f\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u3001<a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?page_id=12997\" target=\"_blank\" rel=\"noopener\">hoboNicola\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a>\u304b\u3089\u3002\u4eca\u56de\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u3001hoboNicolaLibrary162.zip \u3068\u3057\u305f\u3002<\/p>\n<h2>1.6.2\u7248\u306e\u66f4\u65b0\u70b9\u306a\u3069<\/h2>\n<h3>CH9350L \u3092\u4f7f\u3063\u305f\u30ad\u30fc\u30dc\u30fc\u30c9\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u30dc\u30fc\u30c9\u3078\u306e\u5bfe\u5fdc<\/h3>\n<figure id=\"attachment_14929\" aria-describedby=\"caption-attachment-14929\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/f61d2549ab8e130d83ef8cc2a426dad5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-14929\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/f61d2549ab8e130d83ef8cc2a426dad5-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-14929\" class=\"wp-caption-text\">XIAO RP2040 + ch9350_xiao_rev02<\/figcaption><\/figure>\n<p>\u524d\u56de\u306e\u6295\u7a3f\u306b\u8f09\u305b\u305f\u3001hoboNicola CH9350L \u30dc\u30fc\u30c9\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30b0\u30e9\u30e0( <em>src\/hobo_nicola_ch9350if\/<strong>hobo_nicola_ch9350if.cpp<\/strong> <strong>\u304a\u3088\u3073 .h<\/strong><\/em>\u00a0 ) \u3092\u8ffd\u52a0\u3057\u305f\u3002\u5148\u306b\u516c\u958b\u3057\u305f<a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?p=14768\" target=\"_blank\" rel=\"noopener\">Arduino\u7528\u306e\u30e9\u30a4\u30d6\u30e9\u30ea(ch9350ifLibrary)<\/a>\u3068\u4e2d\u8eab\u306f\u307b\u307c\u540c\u3058\u3060\u304c\u3001hoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u76f4\u3059\u904e\u7a0b\u3067\u5909\u66f4\u3092\u5165\u308c\u3084\u3059\u3044\u3088\u3046\u3001\u3053\u3061\u3089\u306e src \u5185\u306b\u5305\u542b\u3057\u305f\u3002<\/p>\n<p>CH9350L\u3092\u4f7f\u3063\u305f\u30dc\u30fc\u30c9\u3092\u4f7f\u3046\u3068\u304d\u306b\u306f\u3001\u30e1\u30a4\u30f3\u30b9\u30b1\u30c3\u30c1\u3068\u3057\u3066<em>examples\/ch9350_hobo_nicola\/<strong>ch9350_hobo_nicola.ino<\/strong><\/em> \u3092\u4f7f\u3063\u3066\u30d3\u30eb\u30c9\u3059\u308b\u3002\u5f93\u6765\u304b\u3089\u306eMAX3421EE\u3092\u642d\u8f09\u3057\u305f mini USB Host Shield(miniUHS)\u3092\u4f7f\u3046\u3068\u304d\u306f\u3001\u5f93\u6765\u3068\u540c\u3058\u304f <strong><em>usb_hobo_nicola.ino<\/em><\/strong>\u3092\u4f7f\u3046\u3002<\/p>\n<h3>\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u4f9d\u5b58\u30b3\u30fc\u30c9\u306e\u5206\u96e2<\/h3>\n<p>1.6.1\u7248\u307e\u3067\u306f\u3001\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u4f9d\u5b58\u90e8\u5206\u3092\u307e\u3068\u3081\u305f <em>device_setup.h<\/em> \u3092 usb_hobo_nicola.ino\u3068\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u306b\u683c\u7d0d\u3057\u3066\u3044\u305f\u304c\u3001ch9350L\u7528\u306e\u30b9\u30b1\u30c3\u30c1\u3067\u3082\u4f7f\u3046\u3053\u3068\u306b\u306a\u3063\u305f\u306e\u3067\u3001src\u30d5\u30a9\u30eb\u30c0\u306b<em>\u00a0<strong>hobo_board_config.cpp \u304a\u3088\u3073.h<\/strong><\/em>\u00a0\u3068\u3057\u3066\u8ffd\u52a0\u3057\u305f\u3002device_setup.h\u306f\u5ec3\u6b62\u3002<\/p>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001SAMD21\u3084AVR\u306e\u7701\u96fb\u6d41\u306e\u305f\u3081\u306e\u521d\u671f\u5316\u51e6\u7406\u3084\u30dc\u30fc\u30c9\u3054\u3068\u306eLED\u306e\u76f8\u9055\u3092\u5438\u53ce\u3059\u308b\u305f\u3081\u306e\u30de\u30af\u30ed\u5b9a\u7fa9\u3001\u30c7\u30a3\u30b8\u30bf\u30eb\u30dd\u30fc\u30c8\u306e\u521d\u671f\u8a2d\u5b9a\u306a\u3069\u304c\u66f8\u3044\u3066\u3042\u308b\u3002<\/p>\n<figure id=\"attachment_14931\" aria-describedby=\"caption-attachment-14931\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/03513314bf6c0342f743a26050845e50.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-14931\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/03513314bf6c0342f743a26050845e50-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-14931\" class=\"wp-caption-text\">XIAO nRF52840 + ch9350_xiao_rev01<\/figcaption><\/figure>\n<h4>\u5404\u30dc\u30fc\u30c9\u3054\u3068\u306eLED\u306e\u6271\u3044\u65b9<\/h4>\n<p>\u4eca\u56de\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f7\u7a2e\u985e\u306e\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306b\u5bfe\u5fdc\u3057\u305f\u304c\u3001\u5404\u30dc\u30fc\u30c9\u306eLED\u306e\u7a2e\u985e\u3084\u63a5\u7d9a\u65b9\u6cd5\u306f\u307e\u3061\u307e\u3061\u3067\u3042\u308b\u3002LED \u3092\u4f7f\u3046\u5834\u9762\u3067\u3044\u3061\u3044\u3061 #ifdef \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u66f8\u304f\u306e\u3082\u9762\u5012\u306a\u306e\u3067\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u5185\u3067 <strong>LED1\u3068LED2\u304a\u3088\u3073BLE_LED<\/strong> \u3068\u3044\u30463\u3064\u306e\u30de\u30af\u30ed\u5b9a\u7fa9\u306b\u307e\u3068\u3081\u305f\u3002LED1\u304cnicola\u30e2\u30fc\u30c9\u304b\u3069\u3046\u304b\u3092\u793a\u3057\u3001LED2\u306f\u30a8\u30e9\u30fc\u63d0\u793a\u7528\u3002BLE_LED\u306fBLE\u63a5\u7d9a\u6642\u306b\u70b9\u6ec5\u3055\u305b\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3001nRF52840\u30b3\u30a2\u4ee5\u5916\u306f\u4f7f\u308f\u306a\u3044\u3002<\/p>\n<p>WS2812\u7cfb\u306eNeoPixel\u3057\u304b\u642d\u8f09\u3057\u3066\u3044\u306a\u3044\u30dc\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u3001<strong>Adafruit_NeoPixel<\/strong>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u3001\u8272\u6307\u5b9a\u3067\u70b9\u706f\u3055\u305b\u308b\u3088\u3046\u306b\u3057LED1\u3068LED2\u306e\u4ee3\u308f\u308a\u306b\u3057\u305f\u3002\u305d\u306e\u3042\u305f\u308a\u306e\u64cd\u4f5c\u306f\u3001<em><strong>hobo_led.cpp<\/strong><\/em> \u3092\u53c2\u7167\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 19.1983%;\"><strong>\u30de\u30a4\u30b3\u30f3<\/strong><br \/>\n<strong>\u30dc\u30fc\u30c9<\/strong><\/td>\n<td style=\"width: 31.8565%;\"><strong>\u3075\u3064\u3046\u306eLED<\/strong><\/td>\n<td style=\"width: 26.1603%;\"><strong>NeoPixel<\/strong><\/td>\n<td style=\"width: 22.7849%;\"><strong>RGB LED<\/strong><br \/>\n<strong>( \u30a2\u30ce\u30fc\u30c9\u30b3\u30e2\u30f3)<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 19.1983%;\">Pro Micro<br \/>\n\u304a\u3088\u3073<br \/>\nLeonardo<\/td>\n<td style=\"width: 31.8565%;\">LED1 = LED_BUILTIN_RX<br \/>\nLED2 = LED_BUILTIN_TX<\/td>\n<td style=\"width: 26.1603%;\">\u306a\u3057<\/td>\n<td style=\"width: 22.7849%;\">\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 19.1983%;\">Adafruit<br \/>\nQTPy-m0<\/td>\n<td style=\"width: 31.8565%;\">\u306a\u3057<\/td>\n<td style=\"width: 26.1603%;\">LED1 = \u7dd1<br \/>\nLED2 = \u8d64<br \/>\n\u96fb\u6e90\u5236\u5fa1\u53ef\u80fd<\/td>\n<td style=\"width: 22.7849%;\">\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 19.1983%;\">Seeed Studio<br \/>\nXIAO-m0<\/td>\n<td style=\"width: 31.8565%;\">LED1= LED_BUILTIN<br \/>\nLED2 = PIN_LED2<\/td>\n<td style=\"width: 26.1603%;\">\u306a\u3057<\/td>\n<td style=\"width: 22.7849%;\">\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 19.1983%;\">Switch Science<br \/>\nISP1807MB<\/td>\n<td style=\"width: 31.8565%;\">LED1 = PIN_LED1<br \/>\nLED2 = \u5225\u9014\u7528\u610f<br \/>\nBLE_LED= \u5225\u9014\u7528\u610f<\/td>\n<td style=\"width: 26.1603%;\">\u306a\u3057<\/td>\n<td style=\"width: 22.7849%;\">\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 19.1983%;\">Seeed Studio<br \/>\nXIAO-nRF52840<\/td>\n<td style=\"width: 31.8565%;\">\u306a\u3057<\/td>\n<td style=\"width: 26.1603%;\">\u306a\u3057<\/td>\n<td style=\"width: 22.7849%;\">LED1=D13<br \/>\nLED2=D11<br \/>\nBLE_LED=D12<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 19.1983%;\">Adafruit<br \/>\nKB2040<\/td>\n<td style=\"width: 31.8565%;\">\u306a\u3057<\/td>\n<td style=\"width: 26.1603%;\">LED1=\u7dd1<br \/>\nLED2=\u8d64<br \/>\n\u96fb\u6e90\u5236\u5fa1\u7121\u3057<\/td>\n<td style=\"width: 22.7849%;\">\u306a\u3057<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 19.1983%;\">Seeed Studio<br \/>\nXIAO-RP2040<\/td>\n<td style=\"width: 31.8565%;\">\u00a0\u306a\u3057<\/td>\n<td style=\"width: 26.1603%;\">\u4f7f\u308f\u306a\u3044<br \/>\n\u96fb\u6e90\u5236\u5fa1\u53ef\u80fd<\/td>\n<td style=\"width: 22.7849%;\">LED1=GPIO16<br \/>\nLED2=GPIO17<br \/>\n(BLE_LED=BPIO25)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>LED1= LED_BUILTIN\u00a0<\/em>\u3068\u3044\u3046\u8868\u8a18\u306e\u53f3\u8fba\u5074\u306f\u3001\u5404\u30dc\u30fc\u30c9\u306e\u69cb\u6210\u3092\u8a18\u8ff0\u3057\u305f<em> pins_arduino.h \u3084 variant.h <\/em>\u5185\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30de\u30af\u30ed\u3092\u8868\u3057\u3066\u304a\u308a\u3001D13\u3084GPIO16\u3068\u3044\u3046\u8868\u8a18\u306f\u3001LED\u3092\u64cd\u4f5c\u3059\u308b\u3068\u304d\u306b\u4f7f\u3046\u30c7\u30a3\u30b8\u30bf\u30eb\u30d4\u30f3\u3042\u308b\u3044\u306fGPIO\u756a\u53f7\u3092\u8868\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u6b8b\u5ff5\u306a\u306e\u304cISP1807MB\u3067\u3001\u30dc\u30fc\u30c9\u306b\u306f\u8d64\u8272\u306eLED\u304c\u4e00\u3064\u8f09\u3063\u3066\u3044\u308b\u3060\u3051\u3067\u3042\u308b\u3002\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u306a\u3069\u306b\u81ea\u524d\u3067LED\u3092\u8f09\u305b\u3066\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u308b\u306e\u3067\u300c\u5225\u9014\u7528\u610f\u300d\u3068\u3057\u305f\u3002<\/p>\n<p>NeoPixel LED\u3092\u642d\u8f09\u3057\u3066\u3044\u308b\u30dc\u30fc\u30c9\u306e\u3046\u3061\u3001WS2812\u306e\u96fb\u6e90\u30d4\u30f3\u304cGPIO\u30dd\u30fc\u30c8\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306f\u300c\u96fb\u6e90\u5236\u5fa1\u53ef\u80fd\u300d\u3068\u3057\u305f\u3002\u4e0a\u8a18\u3067\u306f\u3001XIAO-RP2040\u3068QTPy-m0\u304c\u8a72\u5f53\u3057\u305f\u3068\u3048\u3070\u30b9\u30ea\u30fc\u30d7\u6642\u306bNeoPixel\u306e\u96fb\u6e90\u3092\u30aa\u30d5\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002KB2040\u306eNeoPixel\u306e\u96fb\u6e90\u30d4\u30f3\u306f+3.3V\u76f4\u7d50\u306a\u306e\u3067\u5e38\u6642\u30aa\u30f3\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u6d88\u706f\u4e2d\u30820.3mA\u7a0b\u5ea6\u6d88\u8cbb\u3057\u3066\u3044\u308b\u3088\u3046\u3060\u3002\u524d\u306b\u3082\u66f8\u3044\u305f\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001+3.3V\u96fb\u6e90\u3067\u3082WS2812\u306f\u52d5\u304f\u3088\u3046\u3067\u3042\u308b\u3002<\/p>\n<h3>\u30d3\u30eb\u30c9\u306b\u4f7f\u3063\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u3069<\/h3>\n<p>\u30dc\u30fc\u30c9\u3054\u3068\u306e\u30b3\u30a2\u30e9\u30a4\u30d6\u30e9\u30ea(BSP)\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 72px;\">\n<tbody>\n<tr style=\"height: 18px;\">\n<td style=\"width: 26.7932%; height: 18px;\">\u30de\u30a4\u30b3\u30f3<\/td>\n<td style=\"width: 46.6245%; height: 18px;\">BSP<\/td>\n<td style=\"width: 26.5822%; height: 18px;\">\u5099\u8003<\/td>\n<\/tr>\n<tr style=\"height: 18px;\">\n<td style=\"width: 26.7932%; height: 18px;\">ATMega32U4<\/td>\n<td style=\"width: 46.6245%; height: 18px;\">Arduino AVR Boards 1.8.3<\/p>\n<p>SparkFun AVR Boards 1.1.13<\/td>\n<td style=\"width: 26.5822%; height: 18px;\">(\u5fc5\u9808)<\/td>\n<\/tr>\n<tr style=\"height: 18px;\">\n<td style=\"width: 26.7932%; height: 18px;\">ATSAMD21<\/td>\n<td style=\"width: 46.6245%; height: 18px;\">Arduino SAMD Boards 1.8.13<\/p>\n<p>Adafruit SAMD Boards 1.7.10<\/td>\n<td style=\"width: 26.5822%; height: 18px;\">(\u5fc5\u9808)<\/p>\n<p>\u203b1<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 26.7932%;\">nRF52840<\/td>\n<td style=\"width: 46.6245%;\">Adafruit nRF52\u00a0 1.3.0<\/td>\n<td style=\"width: 26.5822%;\">\u203b2<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 26.7932%;\">RP2040<\/td>\n<td style=\"width: 46.6245%;\">Raspberry Pi Pico\/RP2040\u00a0 2.3.2<\/td>\n<td style=\"width: 26.5822%;\">Arduino-Pico\u30b3\u30a2\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u203b1 XIAO-m0\u306e\u30d3\u30eb\u30c9\u306e\u305f\u3081\u306b\u3001\u82e5\u5e72\u306e\u8ffd\u52a0\u4fee\u6b63\u3092\u5b9f\u65bd\u3002<a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?p=14381\" target=\"_blank\" rel=\"noopener\">\u4ee5\u524d\u306e\u6295\u7a3f\u3092\u53c2\u7167<\/a>\u3002<br \/>\n\u203b2 XIAO-nRF52840\u306e\u30d3\u30eb\u30c9\u306e\u305f\u3081\u306b\u3001\u82e5\u5e72\u306e\u8ffd\u52a0\u4fee\u6b63\u3092\u5b9f\u65bd (\u5f8c\u307b\u3069\u8a73\u3057\u304f)\u3002<\/p>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u306f\u3001<strong>Adafruit_TinyUSB_Library 1.14.1<\/strong>\u00a0 \u3092\u5c0e\u5165\u3057\u3066\u5229\u7528\u3057\u305f\u3002\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5c0e\u5165\u3059\u308b\u3068\u304d\u3001<strong>Adafruit_NeoPixel<\/strong>\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u5165\u308c\u307e\u3059\u304b\uff1f \u3068\u805e\u304b\u308c\u305f\u306e\u3067\u300c\u306f\u3044\u300d\u3068\u5fdc\u3048\u305f\u3089 1.10.5\u304c\u5c0e\u5165\u3055\u308c\u305f\u3002NeoPixel\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u305f\u3081\u3053\u3061\u3089\u3082\u5fc5\u9808\u3002<\/p>\n<figure id=\"attachment_14932\" aria-describedby=\"caption-attachment-14932\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/164395862768bd8ce03c837332a5e630.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-14932\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/164395862768bd8ce03c837332a5e630-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-14932\" class=\"wp-caption-text\">KB2040 + ch9350_promicro_rev01<\/figcaption><\/figure>\n<h4>UHS\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4fee\u6b63<\/h4>\n<p>\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001USB Host Shield Library 2.0 \u3092\u5c0e\u5165\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u3063\u305f\u304c\u3001\u73fe\u5728\u306ehoboNicola\u3067\u306f\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092 <em><strong>src\/UHSLib2.0\u5185<\/strong><\/em> \u306b\u5305\u542b\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u5225\u9014\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u5c0e\u5165\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3002\u4eca\u56de\u306f\u3001XIAO-RP2040\u304a\u3088\u3073KB2040\u3068\u3001XIAO nRF52840\u3092MAX3421EE\u30d9\u30fc\u30b9\u306eminiUHS \u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u4fee\u6b63\u3092\u884c\u3063\u305f\u3002<\/p>\n<h5>RP2040\u7528\u306e\u8ffd\u52a0(avrpins.h)<\/h5>\n<pre class=\"lang:default decode:true\">#elif defined(ARDUINO_ARCH_RP2040)\r\n#define MAKE_PIN(className, pin) \\\r\nclass className { \\\r\npublic: \\\r\n  static void Set() {   digitalWrite(pin, 1); } \\\r\n  static void Clear() { digitalWrite(pin, 0); } \\\r\n  static void SetDirRead()  { pinMode(pin, INPUT); } \\\r\n  static void SetDirWrite() { pinMode(pin, OUTPUT); } \\\r\n  static uint8_t IsSet() { return digitalRead(pin); } \\\r\n};\r\n#if defined(ARDUINO_SEEED_XAIO_RP2040)\r\n\/\/ Pxx \u306e\u6570\u5b57\u306fisp1807\u306b\u5408\u308f\u305b\u305f\u3002\r\nMAKE_PIN(P15, 2); \/\/ SCK(SCK \/ GPIO2)\r\nMAKE_PIN(P14, 4); \/\/ MISO(MI \/ GPIO4)\r\nMAKE_PIN(P16, 3); \/\/ MOSI(MO \/ GPIO3)\r\nMAKE_PIN(P9,  7); \/\/ INT (SCL \/ GPIO7 = D5)\r\nMAKE_PIN(P10, 6); \/\/ SS  (SDA \/ GPIO6 = D4)\r\n#undef MAKE_PIN\r\n#elif defined(ARDUINO_ADAFRUIT_KB2040_RP2040)\r\nMAKE_PIN(P15, 18); \/\/ SCK(SCK \/ GPIO18)\r\nMAKE_PIN(P14, 20); \/\/ MISO(MI \/ GPIO20)\r\nMAKE_PIN(P16, 19); \/\/ MOSI(MO \/ GPIO19)\r\nMAKE_PIN(P10, 10); \/\/ SS  (D10 \/ GPIO10)\r\nMAKE_PIN(P9,  9); \/\/ INT (D9 \/ GPIO9)\r\n#else\r\n....\r\n\r\n<\/pre>\n<p>RP2040 (Arduino-Pico\u30b3\u30a2)\u3067\u306f\u3001\u30dd\u30fc\u30c8\u306e\u8a2d\u5b9a\u3084\u64cd\u4f5c\u306fArduino\u30e9\u30a4\u30d6\u30e9\u30ea\u306e <em>pinMode()\u3084digitalWrite()\u3001 digitalRead()<\/em> \u3067\u884c\u3046\u3088\u3046\u306b\u3057\u305f\u3002Arduino-Pico\u30b3\u30a2\u3067\u306f\u3001\u30c7\u30a3\u30b8\u30bf\u30eb\u30d4\u30f3\u756a\u53f7\u304b\u3089GPIO\u756a\u53f7\u306b\u5909\u63db\u3059\u308b\u51e6\u7406\u306a\u3069\u304c\u306a\u3044\u306e\u3067AVR\u306eArduino\u306b\u6bd4\u3079\u308b\u3068\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3082\u5c0f\u3055\u3044\u3002<\/p>\n<h5>XIAO nRF52840\u7528\u306e\u8ffd\u52a0(avrpins.h)<\/h5>\n<p>\u30dd\u30fc\u30c8\u306e\u64cd\u4f5c\u3092\u884c\u3046\u5b9a\u7fa9(MAKE_PIN)\u306b\u3064\u3044\u3066\u306f\u3001ISP1807\u3068\u5171\u901a\u3068\u3057\u3001\u5404\u30d4\u30f3\u306e\u5b9a\u7fa9\u306e\u307f\u3092\u8ffd\u52a0\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true \">#elif defined(ARDUINO_Seeed_XIAO_nRF52840)\r\nMAKE_PIN(P15, (45)); \/\/ SCK (P1.13)\r\nMAKE_PIN(P14, (46)); \/\/ MISO (P1.14) \r\nMAKE_PIN(P16, (47)); \/\/ MOSI (P1.15)\r\nMAKE_PIN(P10, (4)); \/\/ SS (D4) (P0.4)\r\nMAKE_PIN(P9, (5));\t\/\/ INT (D5)  (P0.5)\r\n#undef MAKE_PIN\r\n#else\r\n...<\/pre>\n<h5>\u5171\u901a\u90e8\u5206 (usbhost.h)<\/h5>\n<p>usbhost.h \u5185\u306b\u3001\u65b0\u305f\u306b\u5bfe\u5fdc\u3092\u8ffd\u52a0\u3057\u305f\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306e\u5b9a\u7fa9\u3092\u8ffd\u52a0\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true \">...\r\n#elif defined(ARDUINO_SSCI_ISP1807_MICRO_BOARD) ||  defined(ADAFRUIT_QTPY_M0) || defined(SEEED_XIAO_M0) || defined(ARDUINO_Seeed_XIAO_nRF52840) || defined(ARDUINO_SEEED_XAIO_RP2040) || defined(ARDUINO_ADAFRUIT_KB2040_RP2040)\r\ntypedef SPi&lt; P15, P16, P14, P10 &gt; spi;\r\n#else\r\n...<\/pre>\n<p>\u5b9f\u969b\u306e\u3068\u3053\u308d\u3001\u5404\u30dc\u30fc\u30c9\u7528\u306eSPI\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2SPI\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u306e\u3067\u3001MISO, MOSI, SCK\u306b\u3064\u3044\u3066\u306e\u5b9a\u7fa9\u306f\u5f79\u306b\u7acb\u3063\u3066\u3044\u306a\u3044\u3002<\/p>\n<h3>\u30b9\u30ea\u30fc\u30d7\u95a2\u4fc2<\/h3>\n<p>\u30e1\u30a4\u30f3\u30b9\u30b1\u30c3\u30c1(<em>usb_hobo_nicola.ino\u00a0<\/em>\u304a\u3088\u3073 <em>ch9350_hobo_nicola.ino\u00a0<\/em>) \u5185\u306e\u30b9\u30ea\u30fc\u30d7\u95a2\u4fc2\u306e\u51e6\u7406\u3092\u82e5\u5e72\u4fee\u6b63\u3057\u305f\u3002\u3044\u305a\u308c\u3082\u3001<em>void loop()<\/em> \u5185\u306b\u8a18\u8ff0\u3002<\/p>\n<p>hoboNicola\u30a2\u30c0\u30d7\u30bf\u30fc\u306f\u3001\u30db\u30b9\u30c8\u5074(\u304a\u3082\u306bPC)\u306eUSB\u304c\u30b5\u30b9\u30da\u30f3\u30c9\u72b6\u614b\u306b\u306a\u3063\u305f\u3053\u3068\u3092\u3001TinyUSB\u30e9\u30a4\u30d6\u30e9\u30ea\u306e <em>USBDevice.suspended()<\/em> \u307e\u305f\u306f Arduino\u30e9\u30a4\u30d6\u30e9\u30ea\u306e<em>USBDevice.IsSuspended()<\/em> \u3092\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u3067\u691c\u51fa\u3057\u3001\u30b9\u30ea\u30fc\u30d7\u3092\u958b\u59cb\u3059\u308b\u3002\u3053\u306e\u3068\u304d\u3001\u8a2d\u5b9a\u9805\u76ee\u306b\u3042\u308b <strong>K : KEYBOARD SUSPEND<\/strong> (\u5f93\u6765\u306ePSEUDO SUSPEND \u304b\u3089\u5909\u66f4) \u304c\u6709\u52b9\u306a\u3089\u3070\u3001\u30a2\u30c0\u30d7\u30bf\u30fc\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30ad\u30fc\u30dc\u30fc\u30c9\u3082\u30b5\u30b9\u30da\u30f3\u30c9\u3057\u3088\u3046\u3068\u3059\u308b\u3002\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u30b5\u30b9\u30da\u30f3\u30c9\u306f\u3001MAX3421E\u306a\u3089\u3070 <strong>SOFKAENAB<\/strong> \u30d3\u30c3\u30c8\u306e\u64cd\u4f5c\u306b\u3088\u3063\u3066\u3001CH9350L\u306a\u3089\u3070<strong>RESET\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b<\/strong>\u3053\u3068\u3067\u5b9f\u65bd\u3059\u308b (CH9350L\u306eRESET\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u5316\u3059\u308b\u3068\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306b\u5bfe\u3059\u308bSOF\u306e\u9001\u51fa\u304c\u505c\u6b62\u3057\u3001\u7d50\u679c\u3068\u3057\u3066\u591a\u304f\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u306f\u30b5\u30b9\u30da\u30f3\u30c9\u72b6\u614b\u306b\u306a\u308b)\u3002<\/p>\n<p>\u305f\u3060\u3001\u305a\u3063\u3068\u30b9\u30ea\u30fc\u30d7\u3057\u305f\u307e\u307e\u3067\u306f\u30a2\u30c0\u30d7\u30bf\u30fc\u306b\u63a5\u7d9a\u3057\u3066\u3044\u308b\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u53e9\u3044\u3066\u30b9\u30ea\u30fc\u30d7\u304b\u3089\u5fa9\u5e30\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u5b9a\u671f\u7684(MAX3421EE\u306a\u3089\u3070\u7d041\u79d2\u3054\u3068\u3001CH9350L\u306a\u3089\u3070\u7d042\u79d2\u3054\u3068)\u306b\u30b9\u30ea\u30fc\u30d7\u304b\u3089\u5fa9\u5e30\u3057\u3066\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u5fa9\u6d3b\u3055\u305b\u3001\u30ad\u30fc\u5165\u529b\u306e\u6709\u7121\u3092\u8abf\u3079\u308b\u3002\u30ad\u30fc\u5165\u529b\u304c\u3042\u308c\u3070 <em>USBDevice.remoteWakeup()<\/em> \u307e\u305f\u306f<em>USBDevice.wakeupHost() <\/em>\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30eaAPI\u3092\u4f7f\u3063\u3066\u30db\u30b9\u30c8\u5074\u306b\u5fa9\u5e30\u8981\u6c42\u3092\u51fa\u3059\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>1.6.2\u7248\u3067\u306f\u3001\u30b9\u30ea\u30fc\u30d7\u72b6\u614b\u304c30\u5206\u9593\u6301\u7d9a\u3057\u305f\u5834\u5408\u3001\u3082\u306f\u3084\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u5fa9\u5e30\u3059\u308b\u6c17\u306f\u306a\u3044\u3093\u3060\u308d\u3046\u3068\u5224\u65ad\u3057\u3066\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u5fa9\u6d3b\u3068\u30ad\u30fc\u5165\u529b\u306e\u8abf\u67fb\u3092\u884c\u308f\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3002\u306a\u304a\u3001\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u3067\u3082\u30db\u30b9\u30c8\u304c\u4f55\u3089\u304b\u306e\u8981\u56e0(\u30de\u30a6\u30b9\u3084\u96fb\u6e90\u30b9\u30a4\u30c3\u30c1\u64cd\u4f5c\u3068\u304b)\u3067\u5fa9\u5e30\u3057\u305f\u5834\u5408\u306b\u306f\u3001<em>!USBDevice.suspended()<\/em> \u3092\u691c\u51fa\u3057\u3066\u30a2\u30c0\u30d7\u30bf\u30fc\u306f\u901a\u5e38\u52d5\u4f5c\u306b\u5fa9\u5e30\u3059\u308b\u3002<\/p>\n<p>\u203b RP2040\u306e\u5834\u5408\u3001\u30b9\u30ea\u30fc\u30d7\u4e2d\u306b <em>USBDevice.remoteWakeup()<\/em> \u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u305d\u306e\u5f8c\u306e\u30b5\u30b9\u30da\u30f3\u30c9\u72b6\u614b\u306e\u691c\u51fa\u304c\u602a\u3057\u304f\u306a\u308a\u3001PC\u304c\u5fa9\u5e30\u3057\u3066\u3082\u30a2\u30c0\u30d7\u30bf\u30fc\u306f\u30b9\u30ea\u30fc\u30d7\u72b6\u614b\u306e\u307e\u307e\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002\u305d\u306e\u7406\u7531\u304c\u8ffd\u3048\u3066\u3044\u306a\u3044\u306e\u3067\u3001RP2040\u3092\u4f7f\u3063\u305f\u69cb\u6210\u3067\u306f\u30ad\u30fc\u30dc\u30fc\u30c9\u306b\u3088\u308b\u30b5\u30b9\u30da\u30f3\u30c9\u304b\u3089\u306e\u5fa9\u5e30\u306f\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3042\u308b\u3002\u307e\u305f\u3001RP2040\u306e\u30b9\u30ea\u30fc\u30d7\u306b\u3064\u3044\u3066\u306f\u3001Pico SDK\u306e <a class=\"el\" href=\"https:\/\/raspberrypi.github.io\/pico-sdk-doxygen\/group__sleep.html#gae617a6842d4f3a192064c4354b88fcff\">sleep_ms()\u00a0<\/a>\u3092\u3064\u304b\u3046\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u304c\u3001\u3042\u307e\u308a\u7701\u96fb\u6d41\u3067\u3082\u306a\u3044(\u307e\u3060\u7814\u7a76\u4e0d\u8db3)\u3002<\/p>\n<h4>MSC Notify\u306b\u3064\u3044\u3066<\/h4>\n<p>AVR\u4ee5\u5916\u306e\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u3067\u306f\u30011.6.1\u7248\u304b\u3089hoboNicola\u30a2\u30c0\u30d7\u30bf\u30fc\u304c\u4f5c\u6210\u3059\u308b\u5c0f\u3055\u306a\u30c9\u30e9\u30a4\u30d6 (<strong>\u30dc\u30ea\u30e5\u30fc\u30e0\u30e9\u30d9\u30eb : hoboNicola<\/strong>) \u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092PC\u5074\u304b\u3089\u64cd\u4f5c\u3059\u308b\u3053\u3068\u3067\u3001IME\u72b6\u614b\u3092\u901a\u77e5\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f (observe_ime .exe 1.1.0\u7248\u304c\u5fc5\u8981)\u3002\u305d\u306e\u76ee\u7684\u306f\u3001ScrLock LED\u306b\u3088\u308b\u72b6\u614b\u901a\u77e5\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u3002<\/p>\n<p>1.6.2\u7248\u3088\u308a\u8a2d\u5b9a\u9805\u76ee\u306e\u3001<strong>M : MSC NOTIFY (TINYUSB)<\/strong> \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u306e\u307f\u3001hoboNicola\u30c9\u30e9\u30a4\u30d6\u3092\u4f5c\u6210\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u6709\u52b9\u304b\u3089\u7121\u52b9\u3001\u307e\u305f\u306f\u3001\u7121\u52b9\u304b\u3089\u6709\u52b9\u306b\u72b6\u614b\u3092\u5909\u66f4\u3057\u305f\u3068\u304d\u3001\u30de\u30a4\u30b3\u30f3\u3092\u30ea\u30bb\u30c3\u30c8\u3057\u3066\u521d\u671f\u5316\u304b\u3089\u3084\u308a\u76f4\u3059\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<p>\u306a\u304a\u3001nRF52840\u30b3\u30a2\u3092\u7528\u3044\u308b\u30de\u30a4\u30b3\u30f3\u306e\u5834\u5408\u3001\u3053\u306e\u30ea\u30bb\u30c3\u30c8\u51e6\u7406\u304c\u4eca\u306e\u3068\u3053\u308d\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u306e\u3067\u3001hoboNicola\u30a2\u30c0\u30d7\u30bf\u30fc\u304c\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u3068\u304d\u306f\u5e38\u306b\u30c9\u30e9\u30a4\u30d6\u304c\u4f5c\u6210\u3055\u308c\u308b\u3002<\/p>\n<h2>RP2040\u306e\u30b5\u30dd\u30fc\u30c8<\/h2>\n<p>ProMicro\u578b\u306e<strong>Adafruit KB2040<\/strong> \u3068 Seeed Studio\u306eXIAO\u30b7\u30ea\u30fc\u30ba\u306e\u4e00\u3064 <strong>XIAO-RP2040<\/strong>\u3067\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u305f\u3002\u5404\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3084RP2040\u306e\u3053\u3068\u306a\u3069\u3002<\/p>\n<h3>Adafruit KB2040<\/h3>\n<figure id=\"attachment_14882\" aria-describedby=\"caption-attachment-14882\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/5dfc7713731df2471e46b5a4d93f4bfa.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-14882\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/5dfc7713731df2471e46b5a4d93f4bfa-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-14882\" class=\"wp-caption-text\">Adafruit KB2040<\/figcaption><\/figure>\n<p>KB2040\u306fProMicro\u578b\u306a\u306e\u3060\u304c\u3001\u4e21\u5074\u306b\u306f\u7247\u507413\u500b\u306e\u30d1\u30c3\u30c9\u304c\u3042\u308b\u3002\u5199\u771f\u306e\u4e00\u756a\u5de6\u5074\u306e\u30d1\u30c3\u30c9\u306b\u306f\u3001<strong>USB\u306eD+\u3068D-<\/strong> \u304c\u5f15\u304d\u51fa\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305f\u3068\u3048\u3070\u30ad\u30fc\u30dc\u30fc\u30c9\u57fa\u677f\u306b\u76f4\u4ed8\u3051\u3057\u3066\u81ea\u524d\u306eUSB\u30b3\u30cd\u30af\u30bf\u306b\u914d\u7dda\u3059\u308b\u3088\u3046\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u3002D+\u304a\u3088\u3073D- \u3068\u3001RP2040\u306eUSB_D+\u3001USB_D- \u30d4\u30f3\u306e\u9593\u306b\u306f\u305d\u308c\u305e\u308c27\u03a9\u306e\u62b5\u6297\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307eUSB\u30b3\u30cd\u30af\u30bf\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u5229\u7528\u3067\u304d\u308b\u30aa\u30f3\u30dc\u30fc\u30c9LED\u3068\u3057\u3066 NeoPixel LED (WS2812B)\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3002\u3053\u306eWS2812B\u306e\u96fb\u6e90\u306f\u3001+3.3V\u306b\u76f4\u7d50\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u30aa\u30d5\u306b\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306e\u7279\u5fb4\u3068\u3057\u3066\u306fI2C\u30c7\u30d0\u30a4\u30b9\u3092\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306eJST SH 4\u30d4\u30f3\u30b3\u30cd\u30af\u30bf (<a href=\"https:\/\/learn.adafruit.com\/introducing-adafruit-stemma-qt\/technical-specs\"><strong> STEMMA QT)<\/strong><\/a> \u3084\u3001\u30b9\u30b1\u30c3\u30c1\u3084\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306e8MBytes \u306eQSPI\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<h3>XIAO-RP2040<\/h3>\n<figure id=\"attachment_14883\" aria-describedby=\"caption-attachment-14883\" style=\"width: 414px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/d7a04678fa4184c825c7985389f661ba.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-14883\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/d7a04678fa4184c825c7985389f661ba-414x552.jpg\" alt=\"\" width=\"414\" height=\"552\" \/><\/a><figcaption id=\"caption-attachment-14883\" class=\"wp-caption-text\">Seeed XIAO-RP2040<\/figcaption><\/figure>\n<p>XIAO-RP2040 \u306f\u4ed6\u306eXIAO\u30b7\u30ea\u30fc\u30ba\u3068\u540c\u69d8\u306b\u809d\u5fc3\u306e\u90e8\u5206\u306f\u91d1\u5c5e\u88fd\u306e\u30ab\u30d0\u30fc\u306b\u8986\u308f\u308c\u3066\u3044\u308b\u3002\u30aa\u30f3\u30dc\u30fc\u30c9\u306eQSPI\u30d5\u30e9\u30c3\u30b7\u30e5\u306f\u3001Raspberry Pi Pico\u3068\u540c\u3058\u304f2MBytes\u3002<\/p>\n<p>LED\u3068\u3057\u3066\u306f\u3001NeoPixel LED(WS2812\u7cfb)\u3068\u30a2\u30ce\u30fc\u30c9\u30b3\u30e2\u30f3\u306eRGB LED\u304c\u8f09\u3063\u3066\u3044\u3066\u3001NexPixel\u306e\u96fb\u6e90\u306fGPIO11\u3067\u30aa\u30f3\uff0f\u30aa\u30d5\u3067\u304d\u308b\u3002RGB LED\u306e\u30ab\u30bd\u30fc\u30c9\u5074\u306f\u3001RGB\u3068\u3082\u306b\u7570\u306a\u308bGPIO\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u3075\u3064\u3046\u306eLED\u304c3\u3064\u4e26\u3093\u3067\u3044\u308b\u306e\u3068\u540c\u3058\u3088\u3046\u306b\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<h3>BOOTSEL\u30b9\u30a4\u30c3\u30c1\u3068RESET\u30b9\u30a4\u30c3\u30c1<\/h3>\n<p>RP2040\u3092\u4f7f\u3063\u305f\u305f\u3044\u3066\u3044\u306e\u30dc\u30fc\u30c9\u306b\u306f\u3001\u30d7\u30c3\u30b7\u30e5\u30dc\u30bf\u30f3\u578b\u306e<strong>BOOTSEL<\/strong>\u30b9\u30a4\u30c3\u30c1\u3068<strong>RESET<\/strong>\u30b9\u30a4\u30c3\u30c1\u304c\u8f09\u3063\u3066\u3044\u308b\u3002RESET\u306f\u6587\u5b57\u901a\u308aCPU\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3002<\/p>\n<p>BOOTSEL\u306fDFU\u30e2\u30fc\u30c9\u3092\u958b\u59cb\u3059\u308b\u3068\u304d\u306b\u4f7f\u3046\u3082\u306e\u3060\u304c\u3001Arduino IDE\u3067\u4f7f\u3046\u3068\u304d\u306f\u4eee\u60f3\u30b7\u30ea\u30a2\u30eb(CDC)\u306etouch1200\u64cd\u4f5c\u3067DFU\u30e2\u30fc\u30c9\u3092\u958b\u59cb\u3057\u3001\u30d3\u30eb\u30c9\u6e08\u306e\u30b9\u30b1\u30c3\u30c1\u3092\u8ee2\u9001\u3067\u304d\u308b\u306e\u3067\u3075\u3060\u3093\u306f\u307e\u305a\u4f7f\u308f\u306a\u3044\u3002\u30b9\u30b1\u30c3\u30c1\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u3068\u304d\u306bBOOTSEL\u3092\u5358\u72ec\u3067\u62bc\u3057\u3066\u3082\u76ee\u306b\u898b\u3048\u308b\u5f71\u97ff\u306f\u306a\u3044\u3088\u3046\u3060\u3002<\/p>\n<p>BOOTSEL\u3092\u62bc\u3057\u305f\u72b6\u614b\u3067RESET\u3092\u30aa\u30f3\uff0f\u30aa\u30d5\u3057\u3001\u305d\u308c\u304b\u3089BOOTSEL\u3092\u96e2\u3057\u3066\u3084\u308b\u3068\u3001UF2\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u304c\u958b\u59cb\u3057\u3066PC\u306eExplorer\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a <strong>RPI-RP2\u30c9\u30e9\u30a4\u30d6<\/strong> \u304c\u73fe\u308c\u308b\u3002<\/p>\n<figure id=\"attachment_14941\" aria-describedby=\"caption-attachment-14941\" style=\"width: 413px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/0d40a5e4a645fc6b96e767d64ac0878e-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-14941 size-large\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/0d40a5e4a645fc6b96e767d64ac0878e-1-413x552.png\" alt=\"\" width=\"413\" height=\"552\" \/><\/a><figcaption id=\"caption-attachment-14941\" class=\"wp-caption-text\">RPI-RP2\u30c9\u30e9\u30a4\u30d6<\/figcaption><\/figure>\n<p>\u3053\u306e\u30c9\u30e9\u30a4\u30d6\u306b<a href=\"https:\/\/github.com\/microsoft\/uf2\" target=\"_blank\" rel=\"noopener\"><strong>UF2\u30d5\u30a9\u30fc\u30de\u30c3\u30c8<\/strong><\/a>\u3055\u308c\u305f\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2\u30d5\u30a1\u30a4\u30eb\u3092\u30c9\u30ed\u30c3\u30d7\u3057\u3066\u3084\u308b\u3068\u3001\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u304c\u4e2d\u8eab\u3092\u89e3\u6790\u3057\u3066QSPI\u30d5\u30e9\u30c3\u30b7\u30e5\u5185\u306e\u6240\u5b9a\u306e\u4f4d\u7f6e\u306b\u683c\u7d0d\u3057\u3066\u304f\u308c\u308b\u3002\u683c\u7d0d\u5f8c\u306b\u306f\u81ea\u52d5\u7684\u306b\u30ea\u30bb\u30c3\u30c8\u304c\u304b\u304b\u308a\u8ee2\u9001\u3057\u305f\u30d5\u30a1\u30fc\u30e0\u30a6\u30a7\u30a2(\u30b9\u30b1\u30c3\u30c1)\u304c\u958b\u59cb\u3059\u308b\u3002<\/p>\n<p>hoboNicola\u306e\u3088\u3046\u306aUSB\u30c7\u30d0\u30a4\u30b9\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u3001\u3068\u304d\u3068\u3057\u3066PC\u304b\u3089USB\u30c7\u30d0\u30a4\u30b9\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u3001Arduino IDE\u304b\u3089COM\u30dd\u30fc\u30c8\u304c\u898b\u3048\u306a\u304f\u306a\u3063\u3066\u30b9\u30b1\u30c3\u30c1\u304c\u8ee2\u9001\u3067\u304d\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u3002<\/p>\n<figure id=\"attachment_14949\" aria-describedby=\"caption-attachment-14949\" style=\"width: 364px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/no_usb.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14949\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/no_usb.png\" alt=\"\" width=\"364\" height=\"153\" \/><\/a><figcaption id=\"caption-attachment-14949\" class=\"wp-caption-text\">USB\u30c7\u30d0\u30a4\u30b9\u304c\u8a8d\u8b58\u3055\u308c\u307e\u305b\u3093<\/figcaption><\/figure>\n<p>\u305d\u3046\u3044\u3046\u3068\u304d\u306b\u306f\u3001<strong>BOOTSEL + RESET\u64cd\u4f5c\u3092\u4f7f\u3063\u3066\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u30e2\u30fc\u30c9<\/strong>\u3068\u3057\u3001<em>\u30e6\u30fc\u30b6\u30fc\u540d\/AppData\/Temp\/arduino_build_xxxxx<\/em> \u30d5\u30a9\u30eb\u30c0\u5185\u306b\u3067\u304d\u3066\u3044\u308b <strong>\u30b9\u30b1\u30c3\u30c1\u540d.ino.uf2 <\/strong>\u30d5\u30a1\u30a4\u30eb\u3092<strong>\u30c9\u30e9\u30a4\u30d6\u306b\u30c9\u30ed\u30c3\u30d7<\/strong>\u3057\u3066\u3084\u308c\u3070\u3088\u3044\u3002\u3046\u307e\u304f\u8ee2\u9001\u3067\u304d\u308b\u3068\u81ea\u52d5\u7684\u306b\u30ea\u30bb\u30c3\u30c8\u304c\u304b\u304b\u3063\u3066\u30b9\u30b1\u30c3\u30c1\u304c\u958b\u59cb\u3059\u308b(\u5f53\u7136\u3001\u554f\u984c\u70b9\u3092\u4fee\u6b63\u3057\u305f\u3042\u3068\u3060\u304c)\u3002<\/p>\n<p>Raspberry Pi Foundation\u8b39\u88fd\u306e<a href=\"https:\/\/www.raspberrypi.com\/products\/raspberry-pi-pico\/\" target=\"_blank\" rel=\"noopener\"><strong>Raspberry Pi PICO<\/strong><\/a>(RP2040\u30d6\u30ec\u30a4\u30af\u30a2\u30a6\u30c8\u30dc\u30fc\u30c9)\u306b\u306f\u3001RESET\u30dc\u30bf\u30f3\u304c\u3064\u3044\u3066\u3044\u306a\u3044\u3002\u305d\u306e\u305f\u3081\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u30e2\u30fc\u30c9\u306b\u5165\u308b\u306b\u306f\u3001BOOTSEL\u3092\u62bc\u3057\u305f\u307e\u307eUSB\u30b1\u30fc\u30d6\u30eb\u3092\u629c\u304d\u5dee\u3057\u3059\u308b\u3057\u304b\u306a\u3044\u3002RESET\u30dc\u30bf\u30f3\u3092\u5099\u3048\u305f\u30dc\u30fc\u30c9\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3067\u3082\u305d\u3093\u306a\u3075\u3046\u306b\u66f8\u3044\u3066\u3042\u3063\u305f\u308a\u3059\u308b\u304c\u3001\u30dc\u30bf\u30f3\u30b9\u30a4\u30c3\u30c1\u304c\u3042\u308b\u306a\u3089\u305d\u3061\u3089\u3092\u4f7f\u3063\u305f\u65b9\u304c\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>Arduino IDE\u3067\u306e\u30d3\u30eb\u30c9<\/h3>\n<p>Arduino IDE\u3067RP2040 (\u3042\u308b\u3044\u306f Raspberry Pi Pico) \u7528\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30d3\u30eb\u30c9\u3059\u308b\u306b\u3042\u305f\u308a\u3001\u30b3\u30a2\u30d1\u30c3\u30b1\u30fc\u30b8\u3042\u308b\u3044\u306fBSP(Board Support Package) \u3068\u3057\u3066Arduino\u516c\u5f0f\u306e<strong> <a href=\"https:\/\/github.com\/arduino\/ArduinoCore-mbed\" target=\"_blank\" rel=\"noopener\">Arduino Mbed Core for RP2040<\/a><\/strong> \u3092\u4f7f\u3046\u304b <em>Earle F. Philhower, III<\/em>\u6c0f\u306b\u3088\u308b<strong><a href=\"https:\/\/github.com\/earlephilhower\/arduino-pico\" target=\"_blank\" rel=\"noopener\"> Raspberry Pi Pico Arduino core (Arduino-Pico)<\/a>\u00a0<\/strong> \u3092\u4f7f\u3046\u304b\u3067\u8ff7\u3046\u3068\u3053\u308d\u3002<\/p>\n<p>Arduino-Pico\u306f\u3001\u4eca\u56de\u4f7f\u3063\u305f XIAO-RP2040\u3068KB2040 \u306e\u3044\u305a\u308c\u3082\u3092 variant\u3068\u3057\u3066\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u516c\u5f0f\u7248\u306b\u6bd4\u3079\u3066\u3088\u308a\u5f93\u6765\u304b\u3089\u306eArduino BSP\u306b\u8fd1\u3044\u5370\u8c61\u3060\u3063\u305f\u3002\u305d\u306e\u4e0a\u3001QSPI\u30d5\u30e9\u30c3\u30b7\u30e5\u3092\u4f7f\u3063\u305fEEPROM(\u30a8\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3)\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u3061\u3083\u3093\u3068\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u30b9\u30b1\u30c3\u30c1\u3092\u5165\u308c\u66ff\u3048\u3066\u3082\u66f8\u304d\u8fbc\u3093\u3060\u5185\u5bb9\u304c\u4fdd\u6301\u3055\u308c\u308b\u3002\u305d\u306e\u3042\u305f\u308a\u306e\u7406\u7531\u3067\u3001Arduino-Pico\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u983b\u7e41\u306b\u66f4\u65b0\u3055\u308c\u3066\u308b\u3088\u3046\u3060\u304c\u3001<strong>\u4eca\u56de\u306f2.3.3\u7248\u3092\u4f7f\u3063\u3066\u30d3\u30eb\u30c9\u304a\u3088\u3073\u52d5\u4f5c\u78ba\u8a8d<\/strong>\u3092\u884c\u3063\u305f\u3002<\/p>\n<p><a href=\"https:\/\/learn.adafruit.com\/adafruit-kb2040\" target=\"_blank\" rel=\"noopener\">Adafruit KB2040 \u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/a>\u3092\u898b\u308b\u3068\u3001Arduino-Pico (earlephilhower\u30b3\u30a2) \u3092\u5c0e\u5165\u3059\u308b\u3068\u3053\u308d\u304b\u3089\u8a71\u304c\u59cb\u307e\u3063\u3066\u3044\u308b\u304c\u3001XIAO-RP2040\u306e\u516c\u5f0f\u306eBSP\u306f\u3001<strong>1.xx\u7248\u306fArduino-Pico\u30d9\u30fc\u30b9\u30012.xx\u7248\u306fArduino Mbed Core\u30d9\u30fc\u30b9<\/strong>\u306b\u306a\u3063\u3066\u3044\u308b(\u4ee5\u4e0b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u30de\u30cd\u30fc\u30b8\u30e3\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u8868\u8a18\u3092\u53c2\u7167)\u3002<\/p>\n<figure id=\"attachment_14884\" aria-describedby=\"caption-attachment-14884\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/0d40a5e4a645fc6b96e767d64ac0878e.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-14884 size-large\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/0d40a5e4a645fc6b96e767d64ac0878e-552x309.png\" alt=\"\" width=\"552\" height=\"309\" \/><\/a><figcaption id=\"caption-attachment-14884\" class=\"wp-caption-text\">Arduino IDE \u30e9\u30a4\u30d6\u30e9\u30ea\u30de\u30cd\u30fc\u30b8\u30e3 Seeed XIAO RP2040<\/figcaption><\/figure>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u306a\u3093\u3068\u306a\u304f\u66f4\u65b0\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u307e\u308b\u3067\u30d9\u30fc\u30b9\u306e\u7570\u306a\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u5165\u308c\u66ff\u308f\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u306a\u308a\u3001\u3042\u307e\u308a\u7d20\u6674\u3089\u3057\u304f\u306a\u3044\u306e\u3067\u3001<strong>Seeed Studio\u306eBSP\u306f\u4f7f\u308f\u306a\u3044<\/strong>\u3053\u3068\u306b\u3057\u3001Arduino-Pico\u30b3\u30a2\u3067\u9032\u3081\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<h4>Arduino-Pico\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h4>\n<p>Arduino IDE\u306e<strong>\u74b0\u5883\u8a2d\u5b9a\uff0f\u8ffd\u52a0\u306e\u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3\u306eURL:<\/strong> \u306b\u3001<span class=\"lang:default highlight:0 decode:true crayon-inline\">https:\/\/github.com\/earlephilhower\/arduino-pico\/releases\/download\/global\/package_rp2040_index.json<\/span>\u00a0 \u3092\u8ffd\u52a0\u3057\u3066\u3042\u308c\u3070\u3001<strong>\u30c4\u30fc\u30eb\uff0f\u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3<\/strong>\u306e\u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u306b RP2040\u3068\u5165\u529b\u3059\u308b\u3053\u3068\u3067 <strong>Raspberry Pi Pico\/RP2040 by Earle F. Philhower, III<\/strong> \u304c\u8868\u793a\u3055\u308c\u308b\u3002\u30d0\u30fc\u30b8\u30e7\u30f32.3.3 \u3067\u30d3\u30eb\u30c9\u3068hoboNicola\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u305f\u3002<\/p>\n<figure id=\"attachment_14969\" aria-describedby=\"caption-attachment-14969\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/0d40a5e4a645fc6b96e767d64ac0878e-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-14969\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/0d40a5e4a645fc6b96e767d64ac0878e-3-552x311.png\" alt=\"\" width=\"552\" height=\"311\" \/><\/a><figcaption id=\"caption-attachment-14969\" class=\"wp-caption-text\">Arduino IDE \u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3<\/figcaption><\/figure>\n<h4>\u30d3\u30eb\u30c9\u6642\u306e\u8a2d\u5b9a<\/h4>\n<p>Arduino IDE\u306e \u30c4\u30fc\u30eb\uff0f\u30dc\u30fc\u30c9 \u3067 <strong>Raspberry Pi RP2040 Boards (2.3.3)<\/strong> \u3092\u9078\u3076\u3068\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30dc\u30fc\u30c9\u540d\u304c\u305a\u3089\u3063\u3068\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001<strong>Adafruit KB2040<\/strong> \u307e\u305f\u306f\u3001<strong>Seeed XAIO RP2040<\/strong>\u3092\u9078\u629e\u3059\u308b(\u306a\u305c\u304b\u3001<strong>XIAO\u3067\u306f\u306a\u304fXAIO<\/strong>\u3068\u66f8\u3044\u3066\u3042\u308b)\u3002<\/p>\n<p><strong>Flash Size:<\/strong> \u3068\u3057\u3066\u3001<strong>Sketch\u304c1MB\u306b\u306a\u308b\u3088\u3046\u306b\u3059\u308b <\/strong>(KB2040\u306a\u3089\u3070 Sketch: 1MB,\u00a0 FS: 7MB\u3001XIAO\u306a\u3089\u3070 Sketch: 1MB,\u00a0 FS: 1MB) \u3002hoboNicola\u3092\u30d3\u30eb\u30c9\u3057\u3066\u3082\u30b9\u30b1\u30c3\u30c1\u30b5\u30a4\u30ba\u306f100KB\u306b\u3082\u6e80\u305f\u306a\u3044\u306e\u3067\u6700\u5c0f\u5024\u3068\u3057\u305f\u3002\u4eca\u56de\u306ehoboNicola\u3067\u306f\u3042\u307e\u3063\u305f\u30d5\u30e9\u30c3\u30b7\u30e5\u3092 \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u306f\u4f7f\u308f\u306a\u3044\u306e\u3060\u304c\u3001\u305d\u306e\u3046\u3061\u4f7f\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><strong>CPU Speed:<\/strong> \u306f<strong>50MHz<\/strong>\u3068\u3059\u308b\u3002\u521d\u671f\u5024\u306e133MHz\u3067\u3082\u3044\u3044\u306e\u3060\u304c\u3001\u30b3\u30a2\u30af\u30ed\u30c3\u30af\u3092\u4e0b\u3052\u308b\u3068\u305d\u308c\u3060\u3051\u6d88\u8cbb\u96fb\u6d41\u3082\u5c0f\u3055\u304f\u306a\u308b\u306e\u3067\u3002<\/p>\n<p><strong>USB Stack:<\/strong> \u306f\u3001<strong>Adafruit TinyUSB<\/strong> \u3092\u9078\u629e\u3059\u308b\u3002\u73fe\u72b6\u306ehoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001AVR\u4ee5\u5916\u306fAdafruit TinyUSB\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u4f9d\u5b58\u3057\u3066\u3044\u308b\u3002<\/p>\n<p><strong>\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8:<\/strong> \u306b\u3064\u3044\u3066\u306f\u3001\u63a5\u7d9a\u4e2d\u306eRP2040\u30dc\u30fc\u30c9\u304c\u898b\u3048\u3066\u3044\u308b\u306f\u305a\u306a\u306e\u3067\u305d\u308c\u3092\u9078\u629e\u3059\u308b\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u306f\u3001\u521d\u671f\u5024\u306e\u307e\u307e\u3068\u3057\u3066\u3044\u308b\u3002<\/p>\n<h2 id=\"xiao-nrf52\">XIAO nRF52840(BLE) \u306e\u30b5\u30dd\u30fc\u30c8<\/h2>\n<p>XIAO\u30b7\u30ea\u30fc\u30ba\u6700\u521d\u306eBLE\u5bfe\u5fdc\u88fd\u54c1\u3067\u5024\u6bb5\u3082\u624b\u9803($10 USD \u524d\u5f8c)\u3060\u304b\u3089\u6280\u9069\u30de\u30fc\u30af\u304c\u4ed8\u304d\u6b21\u7b2c\u6b32\u3057\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3002<\/p>\n<figure id=\"attachment_14890\" aria-describedby=\"caption-attachment-14890\" style=\"width: 414px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/58a33e8a0ddf966632a28b32b33b3b70.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-14890\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/58a33e8a0ddf966632a28b32b33b3b70-414x552.jpg\" alt=\"\" width=\"414\" height=\"552\" \/><\/a><figcaption id=\"caption-attachment-14890\" class=\"wp-caption-text\">Seeed XIAO-nRF52840<\/figcaption><\/figure>\n<p>\u4ee5\u524d\u5bfe\u5fdc\u3057\u305f\u540c\u3058nRF52840\u30b3\u30a2\u306e\u30b9\u30a4\u30c3\u30c1\u30b5\u30a4\u30a8\u30f3\u30b9 ISP1807 Micro Board \u306e\u30d3\u30eb\u30c9\u306f\u00a0 <strong>Adafruit nRF52 BSP<\/strong> ( <a href=\"https:\/\/github.com\/adafruit\/Adafruit_nRF52_Arduino\" target=\"_blank\" rel=\"noopener\">Arduino Core for Adafruit Bluefruit nRF52 Boards<\/a> ) \u306b\u4f9d\u5b58\u3057\u3066\u304a\u308a\u3001USB\u30c7\u30d0\u30a4\u30b9\u3068\u3057\u3066\u306e\u6a5f\u80fd\u306fAdafruit TinyUSB\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u3001BLE\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u3057\u3066\u306e\u6a5f\u80fd\u306f<strong>nRF52 Bluefruit \u30e9\u30a4\u30d6\u30e9\u30ea<\/strong>\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3002XIAO nRF52840\u3078\u306e\u5bfe\u5fdc\u3082\u540c\u3058\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<h3>XIAO nRF52\u30b7\u30ea\u30fc\u30ba\u7528BSP\u306b\u3064\u3044\u3066<\/h3>\n<p>RP2040\u3068\u540c\u69d8\u306bSeeed Stduio\u304c\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3044\u308bBSP\u306f\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u4e2d\u8eab\u304c\u5927\u304d\u304f\u9055\u3063\u3066\u3044\u308b\u3002Arduino IDE\u306e\u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3\u3092\u958b\u3044\u3066 &#8220;Seeed nRF52&#8243;\u3092\u691c\u7d22\u3059\u308b\u3068\u3053\u308c\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u70b9\u3067\u306f(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u306e2.7.2\u3082\u542b\u3081\u3066)3\u3064\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<figure id=\"attachment_14959\" aria-describedby=\"caption-attachment-14959\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/0d40a5e4a645fc6b96e767d64ac0878e-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-14959 size-large\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/07\/0d40a5e4a645fc6b96e767d64ac0878e-2-552x312.png\" alt=\"\" width=\"552\" height=\"312\" \/><\/a><figcaption id=\"caption-attachment-14959\" class=\"wp-caption-text\">Arduino IDE \u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3<\/figcaption><\/figure>\n<p>\u3053\u308c\u3089\u306e\u3046\u3061\u30012.6.1\u7248\u30682.7.2\u7248\u306fRP2040\u3068\u540c\u3058\u304f<strong>Arduino Mbed Core\u30d9\u30fc\u30b9<\/strong>\u306eBSP\u3067\u30011.0.0\u7248\u306e\u307f\u304c Adafruit nRF52 BSP\u3092\u30d9\u30fc\u30b9\u306b\u3057\u305f\u3082\u306e\u3060\u3063\u305f\u3002<strong>nRF52 Bluefruit<\/strong> \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b1.0.0\u7248\u3092\u4f7f\u3046\u3053\u3068\u3082\u8003\u3048\u305f\u304c\u3001\u6b8b\u5ff5\u306a\u3053\u3068\u306bAdafruit_TinyUSB \u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u542b\u307e\u308c\u3066\u304a\u3089\u305a\u3001USB\u30b9\u30bf\u30c3\u30af\u3068\u3057\u3066TinyUSB\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u8003\u616e\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u3002\u3057\u3087\u3046\u304c\u306a\u3044\u306e\u3067\u3001Adafruit nRF52 BSP\u306b\u5bfe\u3057\u3066\u5fc5\u8981\u306a\u9805\u76ee\u3092\u8ffd\u52a0\u3057\u305f\u308a\u7de8\u96c6\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3067\u3001ISP1807\u3068\u540c\u3058\u30b3\u30a2\u304a\u3088\u3073\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<h3>\u8ffd\u8a18 BSP\u304cAdafruit\u30d9\u30fc\u30b9\u306b\u306a\u3063\u305f<\/h3>\n<p>2023\u5e74\u306e9\u6708\u306b XIAO nRF52840\u3092\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u72b6\u6cc1\u304c\u5909\u308f\u3063\u3066\u304a\u308a\u3001Adafruit nRF52 BSP\u3092fork\u3057\u305f\u3082\u306e\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u305f\u3002BSP\u306e\u4e2d\u8eab\u306f\u3001 <a href=\"https:\/\/github.com\/Seeed-Studio\/Adafruit_nRF52_Arduino\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/Seeed-Studio\/Adafruit_nRF52_Arduino<\/a> \u306b\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<figure id=\"attachment_15965\" aria-describedby=\"caption-attachment-15965\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/08\/0d40a5e4a645fc6b96e767d64ac0878e-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-15965\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/08\/0d40a5e4a645fc6b96e767d64ac0878e-1-552x311.png\" alt=\"\" width=\"552\" height=\"311\" \/><\/a><figcaption id=\"caption-attachment-15965\" class=\"wp-caption-text\">Seeed nRF52 BSP<\/figcaption><\/figure>\n<p>Arduino IDE\u306e\u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u306f\u30011.1.4\u7248\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u306e\u3067\u3001\u3053\u308c\u3092\u4f7f\u3063\u3066\u30d3\u30eb\u30c9\u3057\u305f\u3068\u3053\u308d\u3001\u306a\u3093\u306e\u554f\u984c\u3082\u306a\u304f\u30d3\u30eb\u30c9\u3001\u30a2\u30c0\u30d7\u30bf\u30fc\u3078\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3001\u305d\u3057\u3066\u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b\u307e\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u3002<\/p>\n<p>\u30d3\u30eb\u30c9\u306b\u3042\u305f\u3063\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u4f7f\u7528\u3055\u308c\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">\u6b21\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u30e9\u30a4\u30d6\u30e9\u30eahoboNicolaLibrary\u30d0\u30fc\u30b8\u30e7\u30f31.7.0\u3092\u4f7f\u7528\u4e2d\uff1a.... \r\n\u6b21\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u30e9\u30a4\u30d6\u30e9\u30eaSPI\u30d0\u30fc\u30b8\u30e7\u30f31.0\u3092\u4f7f\u7528\u4e2d\uff1a....\r\n\u6b21\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u30e9\u30a4\u30d6\u30e9\u30eaAdafruit_TinyUSB_Library\u30d0\u30fc\u30b8\u30e7\u30f32.2.2\u3092\u4f7f\u7528\u4e2d\uff1a....\r\n\u6b21\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u30e9\u30a4\u30d6\u30e9\u30eaBluefruit52Lib\u30d0\u30fc\u30b8\u30e7\u30f30.21.0\u3092\u4f7f\u7528\u4e2d\uff1a....\r\n\u6b21\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u30e9\u30a4\u30d6\u30e9\u30eaAdafruit_nRFCrypto\u30d0\u30fc\u30b8\u30e7\u30f30.0.5\u3092\u4f7f\u7528\u4e2d\uff1a....\r\n\u6b21\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u30e9\u30a4\u30d6\u30e9\u30eaAdafruit_LittleFS\u30d0\u30fc\u30b8\u30e7\u30f30.11.0\u3092\u4f7f\u7528\u4e2d\uff1a....\r\n\u6b21\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u30e9\u30a4\u30d6\u30e9\u30eaInternalFileSytem\u30d0\u30fc\u30b8\u30e7\u30f30.11.0\u3092\u4f7f\u7528\u4e2d\uff1a....<\/pre>\n<p>Adafruit_TinyUSB_Library\u306f\u3001\u3053\u306e\u6642\u70b9\u3067\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5225\u9014\u53d6\u5f97\u3057\u3066\u3044\u308b\u304c\u3001\u305d\u306e\u4ed6\u306f nRF52 BSP\u3068\u3068\u3082\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3002<\/p>\n<p>Adafruit_nRF52_Arduino \u306b\u3064\u3044\u3066\u306f\u3001\u3053\u306e\u6642\u70b9\u30671.5.0\u7248\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u304a\u308a\u3001\u304a\u305d\u3089\u304fSeeed\u306e\u3082\u306e\u3088\u308a\u9032\u3093\u3067\u3044\u308b\u3088\u3046\u3067\u3042\u308b\u3002<\/p>\n<p>Adafruit nRF52\u3068\u7d71\u5408\u3055\u308c\u305f\u306e\u3067\u3001\u4ee5\u524d\u306b\u66f8\u3044\u305f<strong>\u4ee5\u964d\u306e\u4f5c\u696d\u306f\u4e0d\u8981\u3068\u306a\u3063\u305f<\/strong>\u3002\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3051\u3069\u3002<\/p>\n<h3>Adafruit nRF52 BSP\u3067XIAO nRF52840\u3092\u30d3\u30eb\u30c9\u3059\u308b\u6e96\u5099<\/h3>\n<p><strong>\u203b Seeed nRF Boards 1.1.4 \u4ee5\u964d\u3092\u4f7f\u3046\u5834\u5408\u3001\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u66f8\u3044\u3066\u3042\u308b\u51e6\u7f6e\u306f\u4e0d\u8981\u3067\u3059\u3002<\/strong><\/p>\n<p>\u307e\u305a\u306f\u3001Seeed Stduio nRF52 BSP (1.0.0)\u7248\u3092Arduino IDE\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3088\u308a <em>&#8230;\\Arduino15\\packages\\Seeeduino\\hardware\\nrf52\\1.0.0<\/em> \u304c\u51fa\u6765\u308b\u306e\u3067\u3001\u305d\u306e\u4e2d\u304b\u3089\u3044\u304f\u3064\u304b\u306e\u30d5\u30a9\u30eb\u30c0\u3084\u30d5\u30a1\u30a4\u30eb\u3092 <em>&#8230;\\Arduino15\\packages\\adafruit\\hardware\\nrf52\\1.3.0<\/em> \u306b\u30b3\u30d4\u30fc\u3057\u3066\u3044\u304f\u3068\u3044\u3046\u624b\u9806\u306b\u306a\u308b\u3002<\/p>\n<h4>variants\u5185\u30d5\u30a9\u30eb\u30c0\u306e\u30b3\u30d4\u30fc<\/h4>\n<p>Seeed\u5074\u306e<strong>variants<\/strong> \u5185\u306e <em>Seeed_XIAO_nRF52840<\/em> \u30d5\u30a9\u30eb\u30c0\u3092\u3001\u305d\u3063\u304f\u308a adafruit\u5074\u306e<strong> variants\u30d5\u30a9\u30eb\u30c0\u914d\u4e0b\u306b\u30b3\u30d4\u30fc<\/strong>\u3002<\/p>\n<p>\u3053\u306e\u3068\u304d\u3001<em>variant.h<\/em> \u5185\u306e <strong>LED_STATE_ON \u306e\u8ad6\u7406\u304c\u9006<\/strong>\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u304c\u3064\u3044\u305f\u3002<span class=\"lang:default highlight:0 decode:true crayon-inline \">#define LED_STATE_ON 1 \/\/ State when LED is litted <\/span>\u00a0\u3068\u306a\u3063\u3066\u3044\u308b\u304c\u3001\u6b63\u3057\u304f\u306f\u30011 \u3092\u66f8\u304f\u3068\u6d88\u706f\u30670\u3067\u70b9\u706f\u306a\u306e\u3067\u3001<span class=\"lang:default highlight:0 decode:true crayon-inline \">#define LED_STATE_ON 0<\/span> \u306b\u4fee\u6b63\u3057\u305f\u3002\u3053\u306e\u30de\u30af\u30ed\u306f\u3001Adafruit\u306ewiring_digital.c \u5185\u306e <em>void ledOn(uint32_t pin);<\/em> \u306a\u3069\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b (hoboNicola\u3067\u306f\u4f7f\u3063\u3066\u306a\u3044)\u3002<\/p>\n<h4>boards.txt\u3078\u306e\u8ffd\u8a18<\/h4>\n<p>adafruit\u5074\u306e <strong>1.3.0\/boards.txt<\/strong> \u306b\u3001\u4ee5\u4e0b\u3092\u8ffd\u52a0(Seeed \u306eboards.txt\u304b\u3089\u30b3\u30d4\u30da)\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true\"># ----------------------------------\r\n# Seeed XIAO nRF52840\r\n# ----------------------------------\r\nxiaonRF52840.name=Seeed XIAO nRF52840\r\n\r\n# VID\/PID for bootloader\r\nxiaonRF52840.vid.0=0x2886\r\nxiaonRF52840.pid.0=0x8044\r\nxiaonRF52840.vid.1=0x2886\r\nxiaonRF52840.pid.1=0x0044\r\nxiaonRF52840.vid.2=0x2886\r\nxiaonRF52840.pid.2=0x0044\r\nxiaonRF52840.vid.3=0x2886\r\nxiaonRF52840.pid.3=0x8044\r\n\r\n# Upload\r\nxiaonRF52840.bootloader.tool=bootburn\r\nxiaonRF52840.upload.tool=nrfutil\r\nxiaonRF52840.upload.protocol=nrfutil\r\nxiaonRF52840.upload.use_1200bps_touch=true\r\nxiaonRF52840.upload.wait_for_upload_port=true\r\nxiaonRF52840.upload.maximum_size=811008\r\nxiaonRF52840.upload.maximum_data_size=237568\r\n\r\n# Build\r\nxiaonRF52840.build.mcu=cortex-m4\r\nxiaonRF52840.build.f_cpu=64000000\r\nxiaonRF52840.build.board=Seeed_XIAO_nRF52840\r\nxiaonRF52840.build.core=nRF5\r\nxiaonRF52840.build.variant=Seeed_XIAO_nRF52840\r\nxiaonRF52840.build.usb_manufacturer=\"Seeed\"\r\nxiaonRF52840.build.usb_product=\"XIAO nRF52840\"\r\nxiaonRF52840.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}\r\nxiaonRF52840.build.ldscript=nrf52840_s140_v7.ld\r\nxiaonRF52840.build.vid=0x2886\r\nxiaonRF52840.build.pid=0x8044\r\n\r\n# SofDevice Menu\r\nxiaonRF52840.menu.softdevice.s140v6=S140 7.3.0\r\nxiaonRF52840.menu.softdevice.s140v6.build.sd_name=s140\r\nxiaonRF52840.menu.softdevice.s140v6.build.sd_version=7.3.0\r\nxiaonRF52840.menu.softdevice.s140v6.build.sd_fwid=0x0123\r\n\r\n# Debug Menu\r\nxiaonRF52840.menu.debug.l0=Level 0 (Release)\r\nxiaonRF52840.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0\r\nxiaonRF52840.menu.debug.l1=Level 1 (Error Message)\r\nxiaonRF52840.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1\r\nxiaonRF52840.menu.debug.l2=Level 2 (Full Debug)\r\nxiaonRF52840.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2\r\nxiaonRF52840.menu.debug.l3=Level 3 (Segger SystemView)\r\nxiaonRF52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3\r\nxiaonRF52840.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1\r\n<\/pre>\n<h4>\u30ea\u30f3\u30ab\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b3\u30d4\u30fc<\/h4>\n<p>Seeed\u5074\u306e <em>cores\/nRF5\/linker\/<strong>nrf52840_s140_v7.ld<\/strong><\/em> \u3092\u3001Adafruit\u5074\u306e <em>cores\/nRF5\/linker\/<\/em> \u5185\u306b\u30b3\u30d4\u30fc\u3002\u3053\u3053\u3067Nordic softDevice\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5909\u308f\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u304c\u3064\u3044\u305f\u3002\u30b9\u30a4\u30c3\u30c1\u30b5\u30a4\u30a8\u30f3\u30b9\u306eISP1807MB\u3067\u306fs140_v6 \u3060\u304c\u3001Seeed nRF52\u306f s140_v7\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<h4>softdevice API\u306e\u30b3\u30d4\u30fc<\/h4>\n<p>Seeed\u5074\u306e <em>cores\/nRF5\/nordic\/softdevice\/s140_nrf52_7.3.0_API<\/em>\u00a0 \u30d5\u30a9\u30eb\u30c0\u3092\u3001Adafruit\u5074\u306e <em>cores\/nRF5\/nordic\/softdevice\/<\/em> \u914d\u4e0b\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u306f\u3001Nordic Semiconductor\u793e\u304c\u63d0\u4f9b\u3059\u308b softDevice API\u306e\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3002\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u8aad\u3080\u9650\u308a\u3001\u305d\u3063\u304f\u308a\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3057\u3066\u4f7f\u3046\u5206\u306b\u306f\u554f\u984c\u306a\u3044\u3068\u5224\u65ad\u3057\u305f\u3002<\/p>\n<h4>Arduino IDE<\/h4>\n<figure id=\"attachment_14973\" aria-describedby=\"caption-attachment-14973\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/08\/0d40a5e4a645fc6b96e767d64ac0878e.png\"><img loading=\"lazy\" decoding=\"async\" class=\"waku wp-image-14973 size-large\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2022\/08\/0d40a5e4a645fc6b96e767d64ac0878e-552x324.png\" alt=\"\" width=\"552\" height=\"324\" \/><\/a><figcaption id=\"caption-attachment-14973\" class=\"wp-caption-text\">Arduino IDE nRF52<\/figcaption><\/figure>\n<p>\u3053\u3053\u307e\u3067\u306e\u624b\u9806\u306b\u3088\u308a\u3001Arduino IDE\u306e\u30c4\u30fc\u30eb\uff0f\u30dc\u30fc\u30c9\uff0fAdafruit nRF52 Boards \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u4e00\u3064\u3068\u3057\u3066\u3001Seeed XIAO nRF52840 \u304c\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<h4>\u6ce8\u610f\u70b9<\/h4>\n<p>\u4ee5\u524d\u304b\u3089\u3001BSP\u306b\u5bfe\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u305f\u308a\u4fee\u6b63\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3067\u3082\u3068\u3082\u3068\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u30dc\u30fc\u30c9\u3092\u30d3\u30eb\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u308a\u3057\u3066\u3044\u308b\u3002\u3053\u306e\u65b9\u6cd5\u306f\u3001BSP\u81ea\u4f53\u3092\u66f4\u65b0\u3059\u308b\u3068\u5b9f\u65bd\u3057\u305f\u4fee\u6b63\u5185\u5bb9\u304c\u3059\u3079\u3066\u6d88\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u66f4\u65b0\u6642\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3060\u308d\u3046\u3002<\/p>\n<h1>\u304d\u3087\u3046\u306e\u307e\u3068\u3081<\/h1>\n<p>\u3053\u306e\u3068\u3053\u308dCH9350L\u3092\u4f7f\u3063\u305fhoboNicola\u30a2\u30c0\u30d7\u30bf\u30fc\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u3060\u3063\u305f\u308a\u30c4\u30a4\u30fc\u30c8\u3060\u3063\u305f\u308a\u30d6\u30ed\u30b0\u3060\u3063\u305f\u308a\u3092\u66f8\u3044\u3066\u3044\u308b\u304c\u3001\u7279\u6bb5\u306e\u554f\u984c\u70b9\u306f\u611f\u3058\u306a\u3044\u3002\u305d\u306e\u3046\u3061\u4f55\u304b\u554f\u984c\u304c\u51fa\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u3068\u304d\u306fTwitter ( <a href=\"https:\/\/twitter.com\/okiraku_camera\" target=\"_blank\" rel=\"noopener\">https:\/\/twitter.com\/okiraku_camera<\/a> )\u3067\u5831\u544a\u3059\u308b\u3053\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>RP2040\u306b\u305b\u3088nRF52840\u306b\u305b\u3088\u3001USB\u30db\u30b9\u30c8\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3068\u30b7\u30ea\u30a2\u30eb\u63a5\u7d9a\u3057\u3066\u4f4e\u901f\u306a\u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3060\u3051\u306ehoboNicola\u30a2\u30c0\u30d7\u30bf\u30fc\u3067\u4f7f\u3046\u306e\u306f\u3001\u660e\u3089\u304b\u306b\u5f79\u4e0d\u8db3\u3060\u308d\u3046\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001RP2040\u3068\u3044\u3046\u30c7\u30d0\u30a4\u30b9\u306f\u6027\u80fd\u306e\u9762\u3067\u3082\u4fa1\u683c\u306e\u9762\u3067\u3082\u3053\u308c\u304b\u3089\u306e\u4e3b\u6d41\u306b\u306a\u3063\u3066\u3044\u304f\u306e\u306f\u9593\u9055\u3044\u306e\u306a\u3044\u3068\u3053\u308d\u3068\u611f\u3058\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0\u6982\u8981 hoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea1.6.2\u7248\u306e\u66f4\u65b0\u5185\u5bb9\u3001\u30d3\u30eb\u30c9\u65b9\u6cd5\u306a\u3069\u306b\u3064\u3044\u3066\u3002 \u30ad\u30fc\u30dc\u30fc\u30c9\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u7528\u306eCH9350L\u3092\u4f7f\u3063\u305f\u30a2\u30c0\u30d7\u30bf\u30fc\u306e\u30b5\u30dd\u30fc\u30c8\u3002\u5f93\u6765\u304b\u3089\u306eminiUHS (MAX3421EE)\u7528\u3068\u30e9\u30a4\u30d6\u30e9 &hellip; <a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?p=14862\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">hoboNicola\u30e9\u30a4\u30d6\u30e9\u30ea1.6.2\u7248\u306b\u3064\u3044\u3066<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":14929,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[65,207,151],"class_list":["post-14862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","tag-arduino","tag-ch9350l","tag-hobonicola"],"_links":{"self":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14862"}],"version-history":[{"count":0,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14862\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/media\/14929"}],"wp:attachment":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}