
{"id":7988,"date":"2018-09-25T14:49:01","date_gmt":"2018-09-25T05:49:01","guid":{"rendered":"https:\/\/okiraku-camera.tokyo\/blog\/?p=7988"},"modified":"2023-11-22T14:22:44","modified_gmt":"2023-11-22T05:22:44","slug":"arduino-pro-micro%e3%81%ab%e3%82%ad%e3%83%bc%e3%83%91%e3%83%83%e3%83%89%e3%82%92%e3%81%a4%e3%81%aa%e3%81%92%e3%81%a6pc%e3%81%ae%e5%85%a5%e5%8a%9b%e8%a3%85%e7%bd%ae%e3%81%ab","status":"publish","type":"post","link":"https:\/\/okiraku-camera.tokyo\/blog\/?p=7988","title":{"rendered":"Arduino Pro Micro\u306b\u30ad\u30fc\u30d1\u30c3\u30c9\u3092\u3064\u306a\u3052\u3066PC\u306e\u5165\u529b\u88c5\u7f6e\u306b"},"content":{"rendered":"<h1>\u6982\u8981<\/h1>\n<p><a href=\"https:\/\/www.sparkfun.com\/products\/12640\" target=\"_blank\" rel=\"noopener noreferrer\">SparkFun\u793e\u306ePro Micro<\/a>(\u306e\u30b3\u30d4\u30fc\u54c1)\u306b\u3001\u79cb\u6708\u96fb\u5b50\u306e4\u00d73\u30ad\u30fc\u30d1\u30c3\u30c9\u3092\u63a5\u7d9a\u3057\u3001PC\u306e\u5165\u529b\u88c5\u7f6e(HID\u30ad\u30fc\u30dc\u30fc\u30c9)\u306b\u3057\u3066\u307f\u308b\u3002<\/p>\n<p><strong>Arduino Pro Micro<\/strong>\u3068\u66f8\u3044\u3066\u3057\u307e\u3063\u305f\u3051\u308c\u3069\u3001Pro Micro\u306fArduino\u30aa\u30ea\u30b8\u30ca\u30eb\u3067\u306f\u306a\u304f\u3001SpakFun\u793e\u304c\u958b\u767a\u3057\u305f Arduino\u30b3\u30f3\u30d1\u30c1\u30d6\u30eb\u30dc\u30fc\u30c9\u3068\u3044\u3046\u4f4d\u7f6e\u3065\u3051\u3067\u3001<a href=\"https:\/\/store.arduino.cc\/usa\/arduino-leonardo-with-headers\" target=\"_blank\" rel=\"noopener noreferrer\">\u30aa\u30ea\u30b8\u30ca\u30eb\u306eArduino Leonardo\u00a0<\/a>\u3068\u540c\u3058\u30de\u30a4\u30b3\u30f3(ATmega32u4)\u304c\u8f09\u3063\u3066\u3044\u308b\u304b\u3089\u3001\u958b\u767a\u6642\u306b\u306f\u30aa\u30f3\u30dc\u30fc\u30c9\u306eUSB\u30b3\u30cd\u30af\u30bf\u3092\u4ecb\u3057\u3066\u76f4\u63a5PC\u306b\u63a5\u7d9a\u3067\u304d\u308b\u3057\u3001\u5b9f\u884c\u6642\u306b\u306fPC\u304b\u3089\u898b\u305fUSB\u5468\u8fba\u88c5\u7f6e\u3068\u3057\u3066\u632f\u308b\u821e\u308f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>Pro Micro\u3092\u4f7f\u3046\u304b\u3089\u306b\u306fUSB\u3092\u4ecb\u3057\u3066PC\u306eHID(Human Interface Device) \u3068\u3057\u3066\u69cb\u6210\u3057\u3066\u307f\u305f\u3044\u304b\u3089\u3001\u624b\u5143\u306b\u3042\u3063\u305f\u79cb\u6708\u96fb\u5b50\u306e<a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gK-12229\/\" target=\"_blank\" rel=\"noopener noreferrer\">4\u00d73\u30ad\u30fc\u30d1\u30c3\u30c9\u4f5c\u6210\u30ad\u30c3\u30c8 (AE-KIT45-KEYPAD4X3)<\/a> \u3092\u4f7f\u3063\u3066\u300112\u30ad\u30fc\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u3053\u306e\u4f5c\u6210\u30ad\u30c3\u30c8\u306b\u306f\u30d7\u30ea\u30f3\u30c8\u57fa\u677f\u3001\u30bf\u30af\u30c8\u30b9\u30a4\u30c3\u30c1\u3001\u30c0\u30a4\u30aa\u30fc\u30c9\u3001\u62b5\u6297\u306a\u3069\u5fc5\u8981\u306a\u90e8\u6750\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u3057\u3001\u56de\u8def\u56f3\u3084\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u30b9\u30ad\u30e3\u30f3\u306e\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u30b9\u30b1\u30c3\u30c1\u3082\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u3001\u306f\u3093\u3060\u4ed8\u3051\u3055\u3048\u53ad\u308f\u306a\u3051\u308c\u3070\u624b\u8efd\u306b\u4f7f\u3048\u308b\u3002<\/p>\n<figure id=\"attachment_8003\" aria-describedby=\"caption-attachment-8003\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/8fe6cadbb3a99e5e2f83495f6df89e7b.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-8003\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/8fe6cadbb3a99e5e2f83495f6df89e7b-552x414.jpg\" alt=\"\u30ad\u30fc\u30d1\u30c3\u30c9\u4f5c\u6210\u30ad\u30c3\u30c8\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-8003\" class=\"wp-caption-text\">\u79cb\u6708\u96fb\u5b50\u306e\u30ad\u30fc\u30d1\u30c3\u30c9\u4f5c\u6210\u30ad\u30c3\u30c8\u306e\u4e2d\u8eab<\/figcaption><\/figure>\n<h1>\u69cb\u6210<\/h1>\n<p>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3068\u3057\u3066\u306f\u3001Pro Micro\u306eGPIO\u7aef\u5b50\u306b\u30ad\u30fc\u30d1\u30c3\u30c9\u3092\u63a5\u7d9a\u3059\u308b\u3060\u3051\u306b\u306a\u308b\u30024\u00d73\u306e\u30ad\u30fc\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u3092\u4f7f\u3046\u305f\u3081\u306b\u306f7\u30d3\u30c3\u30c8(\u51fa\u529b3\u672c\u3001\u5165\u529b4\u672c)\u5fc5\u8981\u306a\u306e\u3067\u3001D2\uff5eD4\u3092\u51fa\u529b\u7528\u3001D5\uff5eD8\u3092\u5165\u529b\u7528\u306b\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>Pro Micro\u3092\u4f7f\u3046\u306e\u306f\u4eca\u56de\u304c\u306f\u3058\u3081\u3066\u306a\u306e\u3067\u3001\u8abf\u3079\u305f\u3053\u3068\u3092\u8a18\u9332\u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3059\u308b\u3002\u304a\u3082\u306b<a href=\"https:\/\/learn.sparkfun.com\/tutorials\/pro-micro--fio-v3-hookup-guide\" target=\"_blank\" rel=\"noopener noreferrer\">SparkFun\u793e\u306e\u00a0Pro Micro &amp; Fio V3 Hookup Guide<\/a>\u00a0\u3092\u53c2\u8003\u306b\u3057\u305f\u3002<br \/>\nSparkFun Pro Micro\u306e<a href=\"https:\/\/cdn.sparkfun.com\/datasheets\/Dev\/Arduino\/Boards\/Pro_Micro_v13b.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">\u56de\u8def\u56f3\u306f\u3053\u3061\u3089<\/a>\u3002\u4eca\u56de\u5165\u624b\u3057\u305f\u4e92\u63db\u54c1\u3082\u307b\u3068\u3093\u3069\u540c\u3058\u69cb\u6210\u306a\u306e\u3060\u3051\u3069\u3001LED\u306e\u8272\u3084\u76f4\u5217\u62b5\u6297\u5024\u304c\u9055\u3063\u3066\u3044\u305f\u308a\u3001LDO\u30ec\u30ae\u30e5\u30ec\u30fc\u30bf\u306e\u54c1\u756a\u304c\u9055\u3063\u3066\u3044\u305f\u308a\u3057\u305f\u3002<\/p>\n<h2>Pro Micro 3.3V\/8MHz\u7248<\/h2>\n<p>Pro Micro\u306b\u306f+5V\/16MHz\u52d5\u4f5c\u306e\u3082\u306e\u3068\u3001+3.3V\/8MHz\u52d5\u4f5c\u306e\u3082\u306e\u304c\u3042\u308b\u304c\u3001\u4eca\u56de\u306f+3.3V\/8MHz\u306e\u88fd\u54c1\u3092\u4f7f\u3063\u305f\u30025V\/16MHz\u306e\u88fd\u54c1\u306b\u306f+5V\u51fa\u529b\u306eLDO\u30ec\u30ae\u30e5\u30ec\u30fc\u30bf\u306816MHz\u767a\u632f\u5668\u304c\u8f09\u3063\u3066\u3044\u308b\u3057\u3001+3.3V\u7248\u306b\u306f+3.3V\u51fa\u529b\u306e\u30ec\u30ae\u30e5\u30ec\u30fc\u30bf\u30688MHz\u767a\u632f\u5668\u304c\u8f09\u3063\u3066\u3044\u308b\u3002<br \/>\n\u56fd\u5185\u30678MHz\u7248\u3092\u6271\u3063\u3066\u3044\u308b\u30b7\u30e7\u30c3\u30d7\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4e2d\u56fd\u304b\u3089\u53d6\u308a\u5bc4\u305b\u305f(USD $5\u7a0b\u5ea6)\u3002+3.3V\u52d5\u4f5c\u306e\u30dc\u30fc\u30c9(\u30b7\u30fc\u30eb\u30c9)\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u304c\u3042\u308a\u305d\u3046\u306a\u3089\u3070\u3001+3.3V\u306e\u88fd\u54c1\u3092\u9078\u3093\u3060\u307b\u3046\u304c\u3088\u3044\u3060\u308d\u3046\u3002<\/p>\n<figure id=\"attachment_7992\" aria-describedby=\"caption-attachment-7992\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/4ef4bf38b97046aa5906aec5ab2e8490.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-7992\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/4ef4bf38b97046aa5906aec5ab2e8490-552x414.jpg\" alt=\"\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-7992\" class=\"wp-caption-text\">Arduino Pro Micro, ATmega32u4\u30688MHz\u767a\u632f\u5668<\/figcaption><\/figure>\n<h5>3.3V\u7248\u30685V\u7248<\/h5>\n<p>Pro Micro\u306b\u8f09\u3063\u3066\u3044\u308bATmega32u4\u81ea\u4f53\u306b\u306f\u3001+5V\u7248\u3068\u304b+3.3V\u7248\u3068\u3044\u3063\u305f\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u306f\u306a\u3044\u306e\u3060\u304c\u3001\u52d5\u4f5c\u96fb\u5727\u306b\u3088\u3063\u3066\u30af\u30ed\u30c3\u30af\u5468\u6ce2\u6570\u306e\u4e0a\u9650\u304c\u5236\u9650\u3055\u308c\u3066\u3044\u308b\u3002<a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">ATmega32u4\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8<\/a>\u306e\u00a0<em><strong>29.6 Maximum speed vs. VCC<\/strong>\u00a0<\/em>\u306b\u3088\u308c\u3070\u3001\u52d5\u4f5c\u96fb\u5727\u7bc4\u56f2\u306f+2.7\uff5e+5.5V(\u6700\u5927+6.0V)\u3060\u304c16MHz\u3067\u78ba\u5b9f\u306b\u52d5\u4f5c\u3059\u308b\u3068\u3055\u308c\u3066\u3044\u308bVCC\u306f+4.5V\u7a0b\u5ea6\u4ee5\u4e0a\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306b\u5bfe\u3057\u3001+3.3V\u3092\u4e0e\u3048\u305f\u5834\u5408\u306e\u4e0a\u9650\u5468\u6ce2\u6570\u306f10MHz\u7a0b\u5ea6\u306e\u3088\u3046\u3067\u3042\u308b\u30028MHz\u30af\u30ed\u30c3\u30af\u306a\u3089\u3070VCC\u304c+2.7V\u3067\u3082\u52d5\u4f5c\u3059\u308b\u304b\u3089\u3001\u7701\u96fb\u529b\u3092\u8003\u3048\u308b\u306a\u30898MHz\u30af\u30ed\u30c3\u30af\u7248\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>\u56fd\u5185\u306e\u5927\u624b\u901a\u8ca9\u30b5\u30a4\u30c8\u3067Pro Micro\u3092\u63a2\u3057\u3066\u3044\u305f\u3089\u30013.3V\u300116MHz\u52d5\u4f5c\u3092\u3046\u305f\u3046(\u9a19\u308b\uff1f)\u88fd\u54c1\u304c\u3042\u3063\u305f(\u306a\u305c\u304b\u3061\u3087\u3063\u3068\u9ad8\u3044)\u3002\u5b9f\u306f\u52d5\u304f\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001\u898f\u683c\u5916\u3067\u3042\u308b\u3002<\/p>\n<h5>\u96fb\u6e90\u5468\u308a<\/h5>\n<p>Pro Micro\u306e\u56de\u8def\u56f3\u3092\u898b\u308b\u3068\u3001\u30dc\u30fc\u30c9\u5185\u306e\u96fb\u6e90(VCC)\u306e\u751f\u6210\u65b9\u6cd5\u306b\u3082\u3044\u304f\u3064\u304b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3002<\/p>\n<figure id=\"attachment_8024\" aria-describedby=\"caption-attachment-8024\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/9aa63a24ea1d89943f15bb11c65abe17.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-8024\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/9aa63a24ea1d89943f15bb11c65abe17-552x414.jpg\" alt=\"Arduino Pro Micro\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-8024\" class=\"wp-caption-text\">Arduino Pro Micro, USB\u30b3\u30cd\u30af\u30bf\u3068LDO\u5468\u8fba<\/figcaption><\/figure>\n<p>\u4e0a\u306e\u5199\u771f\u306e\u3088\u3046\u306bUSB\u30b3\u30cd\u30af\u30bf\u306e\u5468\u56f2\u306b\u306f\u3001\u30b8\u30e3\u30f3\u30d1J1\u3001\u30c0\u30a4\u30aa\u30fc\u30c9\u3001\u30ea\u30bb\u30c3\u30bf\u30d6\u30eb\u30d2\u30e5\u30fc\u30ba\u3001LDO\u30ec\u30ae\u30e5\u30ec\u30fc\u30bf\u306a\u3069\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3002LDO\u8868\u9762\u306b\u306f <strong>DE=A1D<\/strong> \u3068\u523b\u5370\u3055\u308c\u3066\u3044\u305f\u3002\u8abf\u3079\u3066\u307f\u308b\u3068\u3001Richteck\u793e\u306eRT9193-33GB\u3068\u3044\u30463.3V\u51fa\u529bCMOS LDO\u30ec\u30ae\u30e5\u30ec\u30fc\u30bf\u306e\u3088\u3046\u3060\u3002\u3053\u308c\u3089\u3092\u7c21\u5358\u306b\u56de\u8def\u306b\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u601d\u308f\u308c\u308b\u3002<\/p>\n<figure id=\"attachment_8032\" aria-describedby=\"caption-attachment-8032\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/A_PRO_MICRO_VCC-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-8032\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/A_PRO_MICRO_VCC-1-552x345.png\" alt=\"\" width=\"552\" height=\"345\" \/><\/a><figcaption id=\"caption-attachment-8032\" class=\"wp-caption-text\">Pro Micro\u96fb\u6e90\u5468\u308a<\/figcaption><\/figure>\n<p>\u3053\u306e\u56de\u8def\u304b\u3089\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u308f\u304b\u308b\u3002<\/p>\n<ul>\n<li>USB VBUS\u3068\u5185\u90e8\u306e\u56de\u8def\u306e\u3042\u3044\u3060\u306b\u306f500mA\u3067\u30c8\u30ea\u30c3\u30d7\u3059\u308b\u30dd\u30ea\u30b9\u30a4\u30c3\u30c1\u304c\u5165\u3063\u3066\u304a\u308a\u3001\u30db\u30b9\u30c8\u5074\u30dd\u30fc\u30c8\u3092\u4fdd\u8b77\u3057\u3066\u3044\u308b\u3002<\/li>\n<li>J1\u3092\u9589\u3058\u308b(\u30cf\u30f3\u30c0\u3092\u6d41\u3059)\u3068\u3001VBUS\u3068VCC\u306f(\u30dd\u30ea\u30b9\u30a4\u30c3\u30c1\u3092\u4ecb\u3057\u3066)\u76f4\u7d50\u3055\u308c\u308b(\u7d04+5V\u96fb\u6e90)\u3002<\/li>\n<li>J1\u3092\u30aa\u30fc\u30d7\u30f3\u306b\u3057\u3066\u304a\u304f\u3068\u3001LDO\u306e\u5165\u529b\u306fVBUS\u307e\u305f\u306fRAW\u7aef\u5b50\u3068\u306a\u308a\u3001VCC\u96fb\u5727\u306fLDO\u306e\u51fa\u529b\u96fb\u5727\u306b\u306a\u308b\u3002<\/li>\n<li>+5V\u51fa\u529b\u306eLDO\u306e\u5165\u529b\u306bVBUS\u3092\u4f7f\u3046\u3068\u3001LDO\u306e\u30c9\u30ed\u30c3\u30d7\u30a2\u30a6\u30c8\u306e\u5206\u3060\u30515V\u3092\u4e0b\u56de\u3063\u3066\u3057\u307e\u3046(J1\u306f\u30aa\u30fc\u30d7\u30f3)\u3002+5V\u52d5\u4f5c\u306a\u3089\u3070RAW\u7aef\u5b50\u306b+6V\u4ee5\u4e0a\u306e\u5916\u90e8\u96fb\u6e90\u3092\u3064\u306a\u3050\u304b\u3001J1\u3092\u9589\u3058\u3066\u304a\u3044\u305f\u65b9\u304c\u3044\u3044\u3060\u308d\u3046\u3002<\/li>\n<li>+3.3V\u52d5\u4f5c\u306e\u5834\u5408\u3001\u96fb\u6e90\u306fVBUS\u3067\u3082RAW\u7aef\u5b50\u306e\u5916\u90e8\u96fb\u6e90\u3067\u3082\u3044\u3044\u3060\u308d\u3046\u3002\u306a\u304a\u3001J1\u306b\u30cf\u30f3\u30c0\u3092\u6d41\u3057\u3066\u3042\u308b\u5834\u5408\u3001+3.3V\u52d5\u4f5c\u306f\u3042\u308a\u5f97\u306a\u3044\u3002<\/li>\n<li>VBUS\u3092\u4f7f\u3046\u306a\u3089\u3070\u3001\u3044\u305a\u308c\u306e\u52d5\u4f5c\u96fb\u5727\u306e\u5834\u5408\u3082\u5927\u304d\u306a\u8ca0\u8377\u306f\u907f\u3051\u308b\u3002<\/li>\n<li>VBUS\u3068RAW\u306e\u9593\u306b\u306f\u30c0\u30a4\u30aa\u30fc\u30c9\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001RAW\u7aef\u5b50\u306b\u5916\u90e8\u304b\u3089+9V\u3068\u304b\u4e0e\u3048\u3066\u3082VBUS\u306b\u306f\u5f71\u97ff\u3057\u306a\u3044\u3002\u307e\u305f\u3001RAW\u7aef\u5b50\u306b\u5916\u90e8\u96fb\u6e90\u3092\u63a5\u7d9a\u3057\u306a\u3044\u5834\u5408\u3001RAW\u7aef\u5b50\u306b\u306fVBUS\u96fb\u5727(\u3061\u3087\u3063\u3068\u964d\u4e0b\u3057\u3066\u3044\u308b)\u304c\u73fe\u308c\u308b\u3002<\/li>\n<li>VCC\u7aef\u5b50\u306b\u5916\u90e8\u96fb\u6e90\u3092\u63a5\u7d9a\u3057\u3066\u3082\u3088\u3044\u3002\u305d\u306e\u5834\u5408\u3001J1\u306f\u30aa\u30fc\u30d7\u30f3\u306b\u3057\u3066\u304a\u304f\u3079\u304d\u3060\u308d\u3046\u3002<\/li>\n<\/ul>\n<h5>\u30aa\u30f3\u30dc\u30fc\u30c9LED<\/h5>\n<p>\u56de\u8def\u56f3\u306b\u3088\u308c\u3070\u3001Pro Micro\u306b\u306f3\u3064\u306e\u8868\u9762\u5b9f\u88c5\u578b\u306eLED\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u3066\u3001<\/p>\n<ul>\n<li>\u8d64(LED1) : VCC\u76f4\u7d50\u306e\u96fb\u6e90\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf<\/li>\n<li>\u7dd1(RXLED) : PD5\u306b\u63a5\u7d9a\u3002LOW\u3067\u70b9\u706f\u3002USB\u30b3\u30cd\u30af\u30bf\u3092\u4e0a\u306b\u3057\u305f\u3068\u304d\u3001\u30aa\u30b7\u30ec\u30fc\u30bf\u306e\u5de6\u5074\u3002<\/li>\n<li>\u9ec4(TXLED) : PB0\u306b\u63a5\u7d9a\u3002LOW\u3067\u70b9\u706f\u3002\u540c\u3058\u304f\u53f3\u5074\u3002<\/li>\n<\/ul>\n<p>\u3068\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3060\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u4eca\u56de\u8cfc\u5165\u3057\u305f\u30dc\u30fc\u30c9\u3067\u306f\u3001RXLED, TXLED\u3068\u3082\u306b\u7dd1\u8272\u3060\u3063\u305f\u3002\u30b9\u30b1\u30c3\u30c1\u304b\u3089\u4f55\u304b\u306e\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u306e\u306f\u5bb9\u6613\u3060\u304c\u3001USB\u3092\u4ecb\u3057\u305f\u9001\u53d7\u4fe1\u6642\u306b\u30c1\u30ab\u30c1\u30ab\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3060\u3057\u3001\u304b\u306a\u308a\u307e\u3076\u3057\u3044\u3002<\/p>\n<h2>\u30ad\u30fc\u30d1\u30c3\u30c9<\/h2>\n<p>\u79cb\u6708\u96fb\u5b50\u306e4&#215;3\u30ad\u30fc\u30d1\u30c3\u30c9\u306b\u306f\u30c0\u30a4\u30aa\u30fc\u30c9\u304c10\u672c\u3001\u62b5\u6297\u304c4\u672c\u3001\u30bf\u30af\u30c8\u30b9\u30a4\u30c3\u30c1\u304c12\u500b\u5165\u3063\u3066\u3044\u308b\u3002\u98fd\u304d\u305a\u306b\u306f\u3093\u3060\u4ed8\u3051\u3057\u3066\u5b8c\u6210\u3002<\/p>\n<figure id=\"attachment_8007\" aria-describedby=\"caption-attachment-8007\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/b94b27b749df9af549dd16279b473b18.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8007 size-large\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/b94b27b749df9af549dd16279b473b18-552x414.jpg\" alt=\"\u79cb\u6708\u96fb\u5b50\u306e\u30ad\u30fc\u30d1\u30c3\u30c9\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-8007\" class=\"wp-caption-text\">\u79cb\u6708\u96fb\u5b50\u306e\u30ad\u30fc\u30d1\u30c3\u30c9(\u90e8\u54c1\u9762)<\/figcaption><\/figure>\n<p>\u4e0b\u6bb5\u306e\u4e21\u8107\u306e\u30b9\u30a4\u30c3\u30c1\u306e\u8272\u3092\u5909\u3048\u3066\u307f\u305f\u3002\u88cf\u5074\u306f\u3053\u3093\u306a\u5177\u5408\u306b\u306a\u3063\u305f\u3002<\/p>\n<figure id=\"attachment_8008\" aria-describedby=\"caption-attachment-8008\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/a5564ae24ae9c60855d5437ac979a5f0.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-8008\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/a5564ae24ae9c60855d5437ac979a5f0-552x414.jpg\" alt=\"\u79cb\u6708\u96fb\u5b50\u306e\u30ad\u30fc\u30d1\u30c3\u30c9\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-8008\" class=\"wp-caption-text\">\u79cb\u6708\u96fb\u5b50\u306e\u30ad\u30fc\u30d1\u30c3\u30c9(\u306f\u3093\u3060\u9762)<\/figcaption><\/figure>\n<p>\u96fb\u8a71\u6a5f\u3068\u540c\u3058\u914d\u5217\u304c3\u5217\u30014\u884c\u306e\u69cb\u6210\u3067\u5370\u5237\u3055\u308c\u3066\u3044\u308b\u3002\u3080\u308d\u3093\u3001\u3053\u306e\u5370\u5b57\u306e\u3068\u304a\u308a\u306b\u4f7f\u3046\u5fc5\u8981\u306f\u306a\u3044\u3060\u308d\u3046\u3002\u306f\u3093\u3060\u9762\u306b\u8cbc\u308a\u4ed8\u3051\u308b\u7d76\u7e01\u7528\u306e\u30b7\u30fc\u30c8\u304c\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u3068\u3082\u3063\u3068\u3088\u304b\u3063\u305f\u3002<\/p>\n<h2>\u56de\u8def\u56f3<\/h2>\n<p>\u30ad\u30fc\u30d1\u30c3\u30c9\u3092\u542b\u3081\u305f\u56de\u8def\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3002RAW\u7aef\u5b50\u306b\u306fUSB VBUS\u304b\u3089\u306e+5V(\u5b9f\u6e2c\u3067\u306f+4.8V)\u304c\u51fa\u308b\u3002<\/p>\n<figure id=\"attachment_8009\" aria-describedby=\"caption-attachment-8009\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/A_PRO_MICRO_4x3_KEY_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-8009\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/A_PRO_MICRO_4x3_KEY_1-552x355.png\" alt=\"\" width=\"552\" height=\"355\" \/><\/a><figcaption id=\"caption-attachment-8009\" class=\"wp-caption-text\">Pro Micro + KeyPad.<\/figcaption><\/figure>\n<p>\u5de6\u5074\u306e10K\u03a9\u00d74\u306e\u62b5\u6297\u306bVCC\u96fb\u5727\u3092\u4e0e\u3048\u308b\u3053\u3068\u3067\u5165\u529b\u5074\u306e\u30d7\u30eb\u30a2\u30c3\u30d7\u62b5\u6297\u3068\u3057\u3066\u6a5f\u80fd\u3059\u308b\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u4eca\u56de\u306fATmega\u306b\u63a5\u7d9a\u3059\u308b\u306e\u3067\u30de\u30a4\u30b3\u30f3\u304c\u5185\u8535\u3057\u3066\u3044\u308b\u30d7\u30eb\u30a2\u30c3\u30d7\u62b5\u6297\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u3001\u57fa\u677f\u306b\u306f\u62b5\u6297\u3092\u306f\u3093\u3060\u4ed8\u3051\u3057\u305f\u3082\u306e\u306e\u3001VCC\u3068\u306f\u63a5\u7d9a\u3057\u306a\u3044\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30ad\u30fc\u30d1\u30c3\u30c9\u306e\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306b\u306f\u3059\u3079\u3066\u306e\u30b9\u30a4\u30c3\u30c1\u306b\u30c0\u30a4\u30aa\u30fc\u30c9\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u8907\u6570\u306e\u30ad\u30fc\u3092\u540c\u6642\u306b\u62bc\u4e0b\u3057\u305f\u3068\u3057\u3066\u3082\u3001\u3044\u308f\u3086\u308b\u300c\u56de\u308a\u8fbc\u307f\u300d\u306b\u3088\u308b\u60aa\u5f71\u97ff\u304c\u306a\u3044\u3002\u305d\u306e\u305f\u308112\u30ad\u30fc\u30ed\u30fc\u30eb\u30aa\u30fc\u30d0\u30fc\u306e\u30ad\u30fc\u30d1\u30c3\u30c9\u304c\u5b9f\u73fe\u3067\u304d\u308b\u3002<\/p>\n<p>\u30d6\u30ec\u30c3\u30c9\u30dc\u30fc\u30c9\u306b\u8f09\u305b\u308b\u3068\u3053\u3046\u306a\u3063\u305f\u3002<\/p>\n<figure id=\"attachment_8010\" aria-describedby=\"caption-attachment-8010\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/f20d216431a6019b43d26835c275eb33.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-8010\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/f20d216431a6019b43d26835c275eb33-552x414.jpg\" alt=\"A_PRO_MICRO_4x3_KEY_1\" width=\"552\" height=\"414\" \/><\/a><figcaption id=\"caption-attachment-8010\" class=\"wp-caption-text\">Pro Micro + KeyPad.<\/figcaption><\/figure>\n<p>\u5de6\u5074\u4e0a\u90e8\u306b\u306f\u30ea\u30bb\u30c3\u30c8\u30b9\u30a4\u30c3\u30c1\u3092\u7f6e\u3044\u305f\u3002\u30b9\u30a4\u30c3\u30c1\u3092\u63a5\u7d9a\u3057\u305fRST\u7aef\u5b50\u306f\u30dc\u30fc\u30c9\u4e0a\u306710K\u03a9\u3067\u30d7\u30eb\u30a2\u30c3\u30d7\u3055\u308c\u3066\u3044\u308b(\u306f\u305a)\u306a\u306e\u3067\u3001\u8ffd\u52a0\u306e\u62b5\u6297\u306f\u4e0d\u8981\u3002Pro Micro\u306e\u30dc\u30fc\u30c9\u306b\u30ea\u30bb\u30c3\u30c8\u30b9\u30a4\u30c3\u30c1\u304c\u8f09\u3063\u3066\u308b\u3068\u3044\u3044\u306e\u306b\u3002<\/p>\n<h2>Arduino IDE\u306e\u6e96\u5099\u3068\u63a5\u7d9a<\/h2>\n<p>Pro Micro\u7528\u306e\u30b9\u30b1\u30c3\u30c1\u3092\u30d3\u30eb\u30c9\u3059\u308b\u305f\u3081\u306b\u306f\u3001Arduino IDE\u306b\u5bfe\u3057\u3066Pro Micro\u306e\u3053\u3068\u3092\u6559\u3048\u3066\u3084\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u3001\u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3\u3092\u4f7f\u3046\u3002\u306a\u304a\u3001Arduino IDE 1.8.3 \u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4ed6\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u8a71\u304c\u9055\u3046\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<p>\u307e\u305a<strong>\u30d5\u30a1\u30a4\u30eb\/\u74b0\u5883\u8a2d\u5b9a<\/strong>\u3092\u958b\u304d\u3001\u8ffd\u52a0\u306e\u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3\u306eURL: \u306b\u6b21\u306e\u5185\u5bb9\u3092\u5165\u529b\u3059\u308b\u3002<span class=\"decode-attributes:false lang:default decode:true crayon-inline\">https:\/\/raw.githubusercontent.com\/sparkfun\/Arduino_Boards\/master\/IDE_Board_Manager\/package_sparkfun_index.json<\/span>\u00a0 \u3002\u305d\u3057\u3066OK\u3067\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u9589\u3058\u308b\u3002<\/p>\n<p>\u6b21\u306b\u3001<strong>\u30c4\u30fc\u30eb\/\u30dc\u30fc\u30c9<\/strong>\u3067\u958b\u304f\u30ea\u30b9\u30c8\u306e\u5148\u982d\u306b\u3042\u308b\u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3\u3092\u9078\u629e\u3059\u308b\u3068IDE\u304c\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30dc\u30fc\u30c9\u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u305d\u306e\u4e2d\u306b\u3042\u308b&#8221;<strong>SparkFun AVR Boards by SparkFun Electronics<\/strong>&#8220;\u3092\u9078\u629e\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f31.1.12\u3060\u3063\u305f\u3002\u30dc\u30fc\u30c9\u30de\u30cd\u30fc\u30b8\u30e3\u3092\u9589\u3058\u3001\u3082\u3046\u4e00\u5ea6<strong>\u30c4\u30fc\u30eb\/\u30dc\u30fc\u30c9<\/strong>\u3092\u958b\u304f\u3068\u3001\u4e0b\u56f3\u306e\u3088\u3046\u306b\u5c0e\u5165\u3055\u308c\u305fSparkFun\u793e\u306e\u30dc\u30fc\u30c9\u304c\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<figure id=\"attachment_7985\" aria-describedby=\"caption-attachment-7985\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/0d40a5e4a645fc6b96e767d64ac0878e.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-7985\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/0d40a5e4a645fc6b96e767d64ac0878e-552x470.png\" alt=\"Arduino IDE\" width=\"552\" height=\"470\" \/><\/a><figcaption id=\"caption-attachment-7985\" class=\"wp-caption-text\">Arduino IDE\u306bSparkFun\u793e\u306e\u30dc\u30fc\u30c9\u3092\u8ffd\u52a0<\/figcaption><\/figure>\n<p>\u30dc\u30fc\u30c9\u30e1\u30cb\u30e5\u30fc\u304b\u3089<strong>SparkFun Pro Micro<\/strong> \u3092\u9078\u629e\u3057\u3001\u30d7\u30ed\u30bb\u30c3\u30b5\u3068\u3057\u3066<strong>ATmega32u4 (3.3V 8MHz)<\/strong> \u3092\u9078\u629e\u3059\u308b\u3002<\/p>\n<p>\u3088\u3046\u3084\u304f\u6e96\u5099\u304c\u3067\u304d\u305f\u306e\u3067PC\u306b\u3064\u306a\u3044\u3067\u307f\u308b\u3002<\/p>\n<h5>PC\u306b\u3064\u306a\u3044\u3067\u307f\u308b\u3068\u3001\u6700\u521d\u306fLilyPad\u3060\u3063\u305f<\/h5>\n<p>\u5546\u54c1\u306b\u4ed8\u5c5e\u306e\u30d4\u30f3\u30d8\u30c3\u30c0\u3092\u306f\u3093\u3060\u4ed8\u3051\u3057\u3001USB\u30b1\u30fc\u30d6\u30eb\u3067PC\u306b\u3064\u306a\u3044\u3067\u307f\u305f\u3002USB\u30b1\u30fc\u30d6\u30eb\u3068\u3057\u3066\u306f\u3001A\u30b3\u30cd\u30af\u30bf\u3068\u30de\u30a4\u30af\u30edB\u30b3\u30cd\u30af\u30bf\u304c\u4ed8\u3044\u305f\u30b9\u30de\u30db\u7528\u306e\u3082\u306e\u3092\u4f7f\u3063\u305f\u3002<\/p>\n<p>\u3064\u306a\u3044\u3067\u307f\u308b\u3068\u3001PC(Windows10)\u306b\u3001<strong>LilyPad USB<\/strong>\u7528\u306eUSB\u30b7\u30ea\u30a2\u30eb\u304c\u81ea\u52d5\u7684\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3088\u3046\u3060\u3063\u305f(COM5\u306b\u306a\u3063\u305f)\u3002Arduino IDE (1.8.3)\u3067\u958b\u3044\u3066<strong>\u30c4\u30fc\u30eb\/\u30dc\u30fc\u30c9\u60c5\u5831\u3092\u53d6\u5f97<\/strong> \u3092\u958b\u304f\u3068\u3001<\/p>\n<figure id=\"attachment_8005\" aria-describedby=\"caption-attachment-8005\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/PRO_MICRO2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-8005\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/PRO_MICRO2-552x526.png\" alt=\"Arduino IDE\" width=\"552\" height=\"526\" \/><\/a><figcaption id=\"caption-attachment-8005\" class=\"wp-caption-text\">Arduino IDE<\/figcaption><\/figure>\n<p>\u306e\u3088\u3046\u306b\u3001\u30dc\u30fc\u30c9\u540d\u3068\u3057\u3066&#8221;<strong>LilyPad Arduino USB<\/strong>&#8220;\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u3042\u308c\uff1f\u3068\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002<a href=\"https:\/\/store.arduino.cc\/usa\/lilypad-arduino-usb\" target=\"_blank\" rel=\"noopener noreferrer\">LilyPad\u00a0Arduino USB<\/a>\u3068\u3044\u3046\u306e\u306f\u670d\u306b\u7e2b\u3044\u4ed8\u3051\u308b\u3084\u3064\u3002Pro Micro\u3068\u4f3c\u305f\u3088\u3046\u306a\u69cb\u6210(ATmega32u4\u3001USB\u30b3\u30cd\u30af\u30bf\u4ed8\u304d\u30018MHz 3.3V\u52d5\u4f5c)\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u3092\u6d41\u7528\u3057\u3066\u3044\u308b\u306e\u3060\u308d\u3046\u304b\u3002<\/p>\n<h5>\u4e00\u5ea6\u30b9\u30b1\u30c3\u30c1\u3092\u66f8\u304d\u8fbc\u3080\u3068Pro Micro\u306b\u306a\u3063\u305f<\/h5>\n<p>\u7c21\u5358\u306a\u30b9\u30b1\u30c3\u30c1\u3092\u66f8\u3044\u3066\u30d3\u30eb\u30c9\u3057\u3066\u66f8\u304d\u8fbc\u3080\u3068\u3001\u81ea\u52d5\u7684\u306b Pro Micro\u7528\u306e\u30c9\u30e9\u30a4\u30d0(USB\u30b7\u30ea\u30a2\u30eb)\u304c\u5c0e\u5165\u3055\u308c\u3001\u4eca\u5ea6\u306fCOM8\u304c\u8ffd\u52a0\u3055\u308c\u305f\u3002<br \/>\n<strong>\u30c4\u30fc\u30eb\/\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8<\/strong>\u3092COM8\u306b\u5909\u66f4\u3057\u3001<strong>\u30c4\u30fc\u30eb\/\u30dc\u30fc\u30c9\u60c5\u5831\u3092\u53d6\u5f97<\/strong> \u3092\u958b\u3044\u3066\u307f\u308b\u3068\u3001<\/p>\n<figure id=\"attachment_8015\" aria-describedby=\"caption-attachment-8015\" style=\"width: 552px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/PRO_MICRO3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-8015\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/PRO_MICRO3-552x524.png\" alt=\"Arduino IDE\" width=\"552\" height=\"524\" \/><\/a><figcaption id=\"caption-attachment-8015\" class=\"wp-caption-text\">Arduino IDE<\/figcaption><\/figure>\n<p>\u4eca\u5ea6\u306f\u3001\u300c\u4e0d\u660e\u306a\u30dc\u30fc\u30c9\u300d\u306b\u306a\u3063\u305f\u3002Arduino\u30aa\u30ea\u30b8\u30ca\u30eb\u4ee5\u5916\u306e\u30dc\u30fc\u30c9\u540d\u306f\u300c\u4e0d\u660e\u306a\u30dc\u30fc\u30c9\u300d\u306b\u306a\u308b\u306e\u3067\u8b58\u5225\u3067\u304d\u306a\u3044\u304c\u3001<strong>PID<\/strong> \u306b\u793a\u3055\u308c\u3066\u3044\u308b\u5024 (0x9204) \u306fSpakfun Pro Micro \u3092\u793a\u3057\u3066\u3044\u308b\u3002<span class=\"lang:default decode:true crayon-inline \">[user-dir]\\AppData\\Local\\Arduino15\\packages\\SparkFun\\hardware\\avr\\1.1.12\\boards.txt<\/span>\u00a0\u00a0\u306e\u4e2d\u306e\u3001<span class=\"lang:default decode:true crayon-inline\">promicro.menu.cpu.8MHzatmega32U4.build.pid=0x9204<\/span>\u00a0 \u306b\u3088\u3063\u3066\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n<p><strong>VID = 0x1B4F<\/strong>\u306fUSB\u30d9\u30f3\u30c0\u30fcID\u3092\u8868\u3057\u3066\u3044\u308b\u3002<a href=\"https:\/\/trac.switch-science.com\/wiki\/ArduinoCompatible#USB%E3%81%AEVID\" target=\"_blank\" rel=\"noopener noreferrer\">VID\u306e\u6d41\u7528\u3084\u3001USB\u3092\u4f7f\u3046\u6a5f\u5668\u306e\u8ca9\u58f2\u306b\u306f\u5fae\u5999\u306a\u3068\u3053\u308d\u304c\u3042\u308b\u3088\u3046\u3060\u3002<\/a>SparkFun\u793e\u306fArduino.cc\u304b\u3089\u30b5\u30d6\u30e9\u30a4\u30bb\u30f3\u30b9\u3092\u53d7\u3051\u3066\u3044\u308b\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001\u305d\u306e\u30b3\u30d4\u30fc\u54c1\u306f\u3069\u3046\u306a\u3093\u3060\u308d\u3046\u3002<\/p>\n<p>\u3053\u306e\u6bb5\u968e\u3067\u3001Arduino PRO MINI\u3092\u4f7f\u3063\u3066\u3044\u305f\u3068\u304d\u306e\u3088\u3046\u306b\u3001\u30d3\u30eb\u30c9\u3057\u3066\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3001<em>Serial.println()<\/em> \u3092\u4f7f\u3063\u3066\u30b7\u30ea\u30a2\u30eb\u30e2\u30cb\u30bf\u306b\u51fa\u529b\u3057\u305f\u308a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u305f\u3060\u3001\u30b7\u30ea\u30a2\u30eb\u30e2\u30cb\u30bf\u3092\u958b\u3044\u305f\u307e\u307e\u3067\u306f<strong>\u30b9\u30b1\u30c3\u30c1\/\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306b\u66f8\u304d\u8fbc\u3080<\/strong>\u304c\u5931\u6557\u3057\u3066\u3057\u307e\u3046\u3002\u30b7\u30ea\u30a2\u30eb\u30e2\u30cb\u30bf\u3092\u9589\u3058\u308c\u3070\u3044\u3044\u3060\u3051\u3060\u304c\u3002<\/p>\n<h1>\u30ad\u30fc\u30d1\u30c3\u30c9\u7528\u30b9\u30b1\u30c3\u30c11(\u3075\u3064\u3046\u306eArduino\u3068\u3057\u3066)<\/h1>\n<p>\u307e\u305a\u306f4\u00d73\u30ad\u30fc\u30d1\u30c3\u30c9\u3092\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u3001\u30ad\u30fc\u306b\u5bfe\u5fdc\u3059\u308b\u30b3\u30fc\u30c9\u3092\u51fa\u529b\u3059\u308b\u30b9\u30b1\u30c3\u30c1\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002HID\u3067\u306f\u306a\u304f\u30b7\u30ea\u30a2\u30eb\u30e2\u30cb\u30bf\u306b\u51fa\u529b\u3059\u308b\u3060\u3051\u3002<\/p>\n<pre class=\"height-set:true height-mode:2 lang:c++ decode:true\">\/**\r\n * \u79cb\u6708\u306e4x3\u30ad\u30fc\u30d1\u30c3\u30c9\u3092pro micro\u306b\u3064\u306a\u3044\u3067\u3001\u5b9a\u671f\u7684\u306b\u30ad\u30fc\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u3002\r\n * \u65b0\u305f\u306b\u62bc\u4e0b\u3055\u308c\u305f\u30ad\u30fc\u304c\u3042\u308c\u3070\u3001\u305d\u306e\u30ad\u30fc\u306b\u5bfe\u5fdc\u3059\u308b\u30ad\u30fc\u756a\u53f7\u3092\u30b7\u30ea\u30a2\u30eb\u30e2\u30cb\u30bf\u306b\u51fa\u529b\u3059\u308b\u3002\r\n * \u62bc\u4e0b\u304b\u30ea\u30ea\u30fc\u30b9\u304b\u306e\u60c5\u5831\u3082\u51fa\u529b\u3059\u308b\u3002\r\n * \r\n * HID\u3067\u306f\u306a\u304f\u3001\u3075\u3064\u3046\u306b\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306b\u51fa\u529b\u3059\u308b\u3002\r\n *\/\r\nconst  uint8_t scan_port[] = { 2, 3, 4};\r\nconst  uint8_t data_port[] = { 5, 6, 7, 8};\r\nvoid setup() {\r\n  Serial.begin(115200);\r\n  for(int i = 0; i &lt; sizeof(scan_port); i++) {\r\n    pinMode(scan_port[i], OUTPUT);\r\n    digitalWrite(scan_port[i], HIGH);\r\n  }\r\n  for(int i = 0; i &lt; sizeof(data_port); i++)\r\n    pinMode(data_port[i], INPUT_PULLUP);\r\n}\r\n\r\n\/\/ \u5168\u30ad\u30fc\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u3001\u62bc\u4e0b\u3055\u308c\u3066\u3044\u308b\u30ad\u30fc\u306e\u30d3\u30c3\u30c8\u30921\u306b\u3057\u305f\u30d3\u30c3\u30c8\u30de\u30c3\u30d7\u3092\u8fd4\u3059\u3002\r\nint key_scan() {\r\n  int key_pressed = 0;\r\n  for(int col = 0; col &lt; sizeof(scan_port); col++) {\r\n    digitalWrite(scan_port[col], LOW);\r\n    int row_data = 0;\r\n    for(int row = 0; row &lt; sizeof(data_port); row++) \r\n      row_data |= (digitalRead(data_port[row]) ? 0 : 8 &gt;&gt; row);\r\n    key_pressed |= (row_data &lt;&lt; (sizeof(data_port) * col));\r\n    digitalWrite(scan_port[col], HIGH);\r\n  }\r\n  return key_pressed;    \r\n}\r\n\r\nconst uint8_t key_codes[] = {1, 4, 7, 10, 2, 5, 8, 11, 3, 6, 9, 12};\r\nvoid loop() {\r\n  static int last_key_pressed = 0;\r\n  int key_pressed = key_scan();\r\n  int change = key_pressed ^ last_key_pressed;\r\n  if (change) {\r\n    int mask = 1;\r\n    uint8_t code;\r\n    for(int i = 0; i &lt; sizeof(key_codes); i++) {\r\n      if (change &amp; mask) {\r\n        code = key_codes[i] | (key_pressed &amp; mask ? 0 : 0x80);\r\n        char tmp[4];\r\n        sprintf(tmp, \"%02X \", code);\r\n        Serial.print(tmp);\r\n      }\r\n      mask = mask &lt;&lt; 1;          \r\n    }\r\n    last_key_pressed = key_pressed;\r\n     Serial.println();\r\n  }\r\n  delay(100);\r\n}<\/pre>\n<h2>\u52d5\u4f5c\u306e\u6982\u8981<\/h2>\n<h5>setup()<\/h5>\n<p>\u30b9\u30ad\u30e3\u30f3\u7528(\u51fa\u529b\u7528)\u306fOUTPUT, \u30c7\u30fc\u30bf\u7528(\u5165\u529b\u7528)\u306fINPUT_PULLUP\u3068\u3059\u308b\u3002\u30ad\u30fc\u30d1\u30c3\u30c9\u306e\u62b5\u6297\u306bVCC\u3092\u4e0e\u3048\u3066\u3044\u306a\u3044\u4ee3\u308f\u308a\u306bATmega\u306e\u5185\u8535\u30d7\u30eb\u30a2\u30c3\u30d7\u62b5\u6297\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308b\u3002<\/p>\n<h5>key_scan() \u30ad\u30fc\u30dc\u30fc\u30c9\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306e\u30b9\u30ad\u30e3\u30f3<\/h5>\n<p>\u30b9\u30ad\u30e3\u30f3\u5bfe\u8c61\u306e\u5217\u306b\u5bfe\u5fdc\u3059\u308b\u30dd\u30fc\u30c8( <em>scan_port[col]<\/em> )\u3092LOW\u3068\u3059\u308b\u3002\u305d\u306e\u72b6\u614b\u30674\u884c\u5206\u306e\u30c7\u30fc\u30bf( <em>data_port[row]<\/em>)\u3092\u8aad\u3080\u3068\u3001\u30aa\u30f3\u306b\u306a\u3063\u3066\u3044\u308b\u30ad\u30fc\u304cLOW\u3001\u30aa\u30d5\u306b\u306a\u3063\u3066\u3044\u308b\u30ad\u30fc\u304cHIGH\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001<em>row_data<\/em> \u306e\u5bfe\u5fdc\u3059\u308b\u30d3\u30c3\u30c8\u4f4d\u7f6e\u306b\u30aa\u30f3\u306a\u30891\u3001\u30aa\u30d5\u306a\u30890\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3002\u3053\u308c\u30923\u5217\u5206\u7e70\u308a\u8fd4\u305712\u30d3\u30c3\u30c8\u5206\u306e\u62bc\u4e0b\u72b6\u614b\u30c7\u30fc\u30bf\u3092<em>key_pressed<\/em>\u306b\u5f97\u3066\u30ea\u30bf\u30fc\u30f3\u3059\u308b\u3002<\/p>\n<h5>loop() \u30e1\u30a4\u30f3\u30eb\u30fc\u30d7<\/h5>\n<p>\u5b9a\u671f\u7684\u306b<em> key_scan()<\/em> \u3092\u547c\u3073\u3001<em>int key_pressed<\/em>\u306b\u5168\u30ad\u30fc(12\u500b)\u306e\u62bc\u4e0b\u72b6\u614b\u3092\u30d3\u30c3\u30c8\u30de\u30c3\u30d7\u3068\u3057\u3066\u5f97\u308b\u3002LSB\u304cSW1\u3067\u30d3\u30c3\u30c811\u304cSW12\u306b\u306a\u308b\u3002<\/p>\n<p><em>key_pressed<\/em>\u3068\u524d\u56de\u30ad\u30fc\u30b9\u30ad\u30e3\u30f3\u6642\u306e\u30ad\u30fc\u72b6\u614b( <em>last_key_pressed<\/em> )\u3068\u306eXOR\u3092\u5f97\u308b\u3053\u3068\u3067\u3001\u72b6\u614b\u304c\u5909\u5316\u3057\u305f\u30ad\u30fc\u306e\u307f\u3092\u62bd\u51fa\u3057\u3066<em>int change<\/em>\u306b\u683c\u7d0d\u3059\u308b\u3002\u5909\u5316\u3057\u305f\u30ad\u30fc\u306b\u5bfe\u5fdc\u3059\u308b\u30d3\u30c3\u30c8\u304c1\u306b\u3001\u5909\u5316\u306e\u306a\u3044\u30ad\u30fc\u306e\u30d3\u30c3\u30c8\u304c0\u306b\u306a\u308b\u3002<em>change<\/em>\u304c0\u306a\u3089\u5909\u5316\u3057\u305f\u30ad\u30fc\u306f\u306a\u3044\u3002<\/p>\n<p><em>change<\/em>\u306e\u5404\u30d3\u30c3\u30c8\u306b\u3064\u3044\u3066\u30011\u306b\u306a\u3063\u3066\u3044\u308b\u30ad\u30fc\u306b\u5bfe\u5fdc\u3059\u308b\u30ad\u30fc\u30b3\u30fc\u30c9\u3092\u3001<em>const uint8_t key_codes[]<\/em> \u304b\u3089\u5f97\u308b\u3002\u30ad\u30fc\u30b3\u30fc\u30c9\u306f\u56de\u8def\u56f3\u306b\u793a\u3057\u305f\u30b9\u30a4\u30c3\u30c1\u306e\u756a\u53f7\u3068\u3057\u305f\u3002\u305d\u306e\u30ad\u30fc\u304c\u62bc\u4e0b\u3055\u308c\u305f\u306e\u306a\u3089\u3070\u305d\u306e\u307e\u307e\u3001\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u306e\u306a\u30890x80\u3092OR\u3057\u30012\u6841\u306e16\u9032\u6570\u306b\u66f8\u5f0f\u5316\u3057\u3066\u30b7\u30ea\u30a2\u30eb\u51fa\u529b\u3057\u3066\u3044\u308b\u3002<\/p>\n<h5>\u3053\u306e\u30b9\u30b1\u30c3\u30c1\u306b\u3064\u3044\u3066<\/h5>\n<p>\u3053\u306e\u5b9f\u88c5\u3092\u3053\u306e\u307e\u307ePRO MINI\u306a\u3069\u3067\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u308b\u3002\u7c21\u5358\u306a\u5b9f\u88c5\u306a\u306e\u3067\u3001<em>delay(100);<\/em> \u3067100msec\u5358\u4f4d\u306b\u30ad\u30fc\u30b9\u30ad\u30e3\u30f3\u3068\u51fa\u529b\u3092\u884c\u3063\u3066\u3044\u308b\u304c\u3001\u30bf\u30a4\u30de\u30fc\u5272\u308a\u8fbc\u307f\u306b\u3088\u3063\u3066\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u3092\u5f97\u3066\u3082\u3044\u3044\u3060\u308d\u3046\u3002\u307e\u305f\u3001\u6700\u5f8c\u306b\u51fa\u529b\u3057\u305f\u30b3\u30fc\u30c9\u304c\u62bc\u4e0b\u3055\u308c\u305f\u307e\u307e\u306a\u3089\u3070\u3001\u30ea\u30d4\u30fc\u30c8\u51fa\u529b\u3059\u308b\u306a\u3069\u306e\u5909\u66f4\u3082\u5bb9\u6613\u3060\u308d\u3046\u3002<\/p>\n<h1>\u30ad\u30fc\u30d1\u30c3\u30c9\u7528\u30b9\u30b1\u30c3\u30c12(HID\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u3057\u3066)<\/h1>\n<p>\u306a\u304c\u306a\u304c\u3068\u66f8\u3044\u3066\u304d\u3066\u3088\u3046\u3084\u304f\u3053\u3053\u307e\u3067\u6765\u305f\u3002HID\u30ad\u30fc\u30dc\u30fc\u30c9\u3068\u3057\u3066\u5b9f\u88c5\u3059\u308b\u305f\u3081\u3001\u4eca\u56de\u306fArduino\u6a19\u6e96\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002<strong>\u30b9\u30b1\u30c3\u30c1\/\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9<\/strong>\u304b\u3089\u3001<strong>Keyboard<\/strong> \u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3067\u3001\u30b9\u30b1\u30c3\u30c1\u306e\u5148\u982d\u306b\u00a0<em>#include &lt;Keyboard.h&gt;<\/em> \u304c\u633f\u5165\u3055\u308c\u305f\u3002\u3053\u306e\u30d8\u30c3\u30c0\u306b\u306f<em>Keyboard_<\/em>\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u3068\u3001\u30b9\u30b1\u30c3\u30c1\u3067\u5229\u7528\u3059\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9 <em>Keyboard<\/em> \u306e\u5ba3\u8a00\u304c\u3042\u308b\u3002<\/p>\n<p>\u30ad\u30fc\u30b9\u30ad\u30e3\u30f3\u90e8\u5206\u3084\u30ad\u30fc\u30b3\u30fc\u30c9\u3092\u5f97\u308b\u7b87\u6240\u306f\u307b\u3068\u3093\u3069\u540c\u3058\u3060\u304c\u3001\u51fa\u529b\u90e8\u5206\u306f <em>Keyboard_<\/em>\u30af\u30e9\u30b9\u306e\u3001<em>Keyboard_::press(uint8_t k);<\/em> \u3068\u3001<em>Keyboard_::release(uint8_t k);<\/em> \u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u305f\u3002\u305d\u308c\u305e\u308c\u3001\u30ad\u30fc\u306e\u62bc\u4e0b\u691c\u51fa\u6642\u3068\u30ea\u30ea\u30fc\u30b9\u691c\u51fa\u6642\u306b\u547c\u3073\u51fa\u3059\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u5f15\u6570\u306e k \u306b\u306f\u3001\u51fa\u529b\u3057\u305f\u3044\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3002\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u4e0e\u3048\u3066\u3084\u308b\u3068\u3001\u30e9\u30a4\u30d6\u30e9\u30ea(Keyboard_\u30af\u30e9\u30b9)\u306e\u4e2d\u3067HID\u30ad\u30fc\u30dc\u30fc\u30c9\u7528\u306e\u5185\u90e8\u30b3\u30fc\u30c9\u306b\u5909\u63db\u3055\u308c\u308b\u3088\u3046\u3060\u3002<\/p>\n<p>\u30b9\u30b1\u30c3\u30c1\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<pre class=\"height-set:true height-mode:2 lang:default decode:true\">#include &lt;Keyboard.h&gt;\r\nconst  uint8_t scan_port[] = { 2, 3, 4};\r\nconst  uint8_t data_port[] = { 5, 6, 7, 8};\r\nvoid setup() {\r\n  for(int i = 0; i &lt; sizeof(scan_port); i++) {\r\n    pinMode(scan_port[i], OUTPUT);\r\n    digitalWrite(scan_port[i], HIGH);\r\n  }\r\n  for(int i = 0; i &lt; sizeof(data_port); i++)\r\n    pinMode(data_port[i], INPUT_PULLUP);\r\n  Keyboard.releaseAll();\r\n}\r\n\r\n\/\/ \u5168\u30ad\u30fc\u30b9\u30ad\u30e3\u30f3\u3057\u3066\u3001\u62bc\u4e0b\u3055\u308c\u3066\u3044\u308b\u30ad\u30fc\u306e\u30d3\u30c3\u30c8\u30921\u306b\u3057\u305f\u30d3\u30c3\u30c8\u30de\u30c3\u30d7\u3092\u8fd4\u3059\u3002\r\nint key_scan() {\r\n  int key_pressed = 0;\r\n  for(int col = 0; col &lt; sizeof(scan_port); col++) {\r\n    digitalWrite(scan_port[col], LOW);\r\n    int row_data = 0;\r\n    for(int row = 0; row &lt; sizeof(data_port); row++) \r\n      row_data |= (digitalRead(data_port[row]) ? 0 : 8 &gt;&gt; row);\r\n    key_pressed |= (row_data &lt;&lt; (sizeof(data_port) * col));\r\n    digitalWrite(scan_port[col], HIGH);\r\n  }\r\n  return key_pressed;    \r\n}\r\n\r\nconst uint8_t key_codes[] = {\r\n  0x31, 0x34, 0x37, KEY_LEFT_SHIFT, \r\n  0x32, 0x35, 0x38, 0x30, \r\n  0x33, 0x36, 0x39, KEY_RETURN};\r\n\r\nvoid loop() {\r\n  static int last_key_pressed = 0;\r\n  int key_pressed = key_scan();\r\n  int change = key_pressed ^ last_key_pressed;\r\n  if (change) {\r\n    int mask = 1;\r\n    uint8_t code;\r\n    for(int i = 0; i &lt; sizeof(key_codes); i++) {\r\n      if (change &amp; mask) {\r\n        code = key_codes[i];\r\n        if (key_pressed &amp; mask)\r\n          Keyboard.press(code);\r\n        else\r\n          Keyboard.release(code);        \r\n      }\r\n      mask = mask &lt;&lt; 1;          \r\n    }\r\n    last_key_pressed = key_pressed;\r\n  }\r\n  delay(50);\r\n}<\/pre>\n<p><em>\u5185\u5bb9\u306f\u6700\u521d\u306e\u30b9\u30b1\u30c3\u30c1\u3068\u307b\u3068\u3093\u3069\u540c\u3058\u3002\u5909\u66f4\u70b9\u306f\u3001const uint8_t key_codes[]<\/em> \u306b\u6570\u5b57\u30ad\u30fc\u76f8\u5f53\u306e\u30a2\u30b9\u30ad\u30fc\u30b3\u30fc\u30c9\u3092\u5165\u308c\u3001SW10(\u7dd1\u8272)\u3092USB\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u5de6SHIFT\u30ad\u30fc\u3001SW12(\u9752\u8272)\u3092Enter\u30ad\u30fc\u3068\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u62bc\u4e0b\u691c\u51fa\u6642\u306b\u306f <em>Keyboard.press(code);<\/em>\u00a0\u3092\u3001\u30ea\u30ea\u30fc\u30b9\u691c\u51fa\u6642\u306f <em>Keyboard.release(code);<\/em>\u00a0\u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u3057\u305f\u3002<br \/>\n<em>KEY_LEFT_SHIFT<\/em>\u3084<em>KEY_RETURN<\/em>\u306a\u3069\u306e\u5b9a\u7fa9\u306fKeyboard.h \u5185\u306b\u3042\u308b\u3002<\/p>\n<p>\u30b9\u30a4\u30c3\u30c1\u3092\u62bc\u3057\u305f\u307e\u307e\u306b\u3057\u3066\u304a\u304f\u3068\u3001\u30b9\u30b1\u30c3\u30c1\u3067\u306f\u4f55\u3082\u3057\u3066\u3044\u306a\u3044\u306e\u306b\u30ad\u30fc\u304c\u30ea\u30d4\u30fc\u30c8\u3059\u308b\u3002\u30bf\u30a4\u30d1\u30de\u30c1\u30c3\u30af\u306e\u958b\u59cb\u9045\u5ef6\u3084\u30ea\u30d4\u30fc\u30c8\u51fa\u529b\u306fPC\u5074\u306e\u30c9\u30e9\u30a4\u30d0\u304c\u51e6\u7406\u3057\u3066\u3044\u308b\u3088\u3046\u3060\u3002\u30b9\u30b1\u30c3\u30c1\u306e\u6700\u5f8c\u3092<em>delay(50);<\/em> \u3068\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u30ad\u30fc\u306e\u30ea\u30ea\u30fc\u30b9\u3092\u3059\u3070\u3084\u304f\u691c\u51fa\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3002<\/p>\n<h5>Keyboard_\u30af\u30e9\u30b9\u306e\u4e2d\u8eab<\/h5>\n<p>Keyboard_\u30af\u30e9\u30b9\u306e\u4e2d\u3067\u306f\u3001<em>KeyReport<\/em>\u69cb\u9020\u4f53\u306e\u5909\u6570<em>_keyReport<\/em>\u306b\u62bc\u4e0b\u4e2d\u306e\u30ad\u30fc\u3084\u30e2\u30c7\u30a3\u30d5\u30a1\u30a4\u30e4\u30ad\u30fc(SHIFT, ALT, CTRL, GUI\u3002\u5de6\u53f3\u3042\u308b\u306e\u3067\u5408\u8a088\u30ad\u30fc)\u306e\u60c5\u5831\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3002\u4e0a\u8a18\u306e<em>press()<\/em> \u3084 <em>release()<\/em> \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u306f\u3001<em>_keyReport<\/em>\u5185\u306e\u5404\u7a2e\u60c5\u5831\u3092\u66f8\u304d\u66ff\u3048\u3066\u304b\u3089<em>sendReport();<\/em> \u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u308b\u3002<em>sendReport();<\/em> \u30e1\u30bd\u30c3\u30c9\u306fHID\u30af\u30e9\u30b9\u5185\u306e<em>SendReport();<\/em>\u3092\u4f7f\u3063\u3066USB\u3078\u306e\u9001\u4fe1\u3092\u884c\u3063\u3066\u3044\u308b\u3088\u3046\u3060\u3002<br \/>\n<em>KeyReport<\/em>\u69cb\u9020\u4f53\u5185\u306b\u306f\u62bc\u4e0b\u4e2d\u306e\u30ad\u30fc\u3092\u793a\u3059\u914d\u5217\u304c\u3042\u308b\u304c\u3001\u3053\u306e\u914d\u5217\u306e\u5927\u304d\u3055\u306f6\u30d0\u30a4\u30c8\u3057\u304b\u306a\u3044\u3002\u305d\u306e\u305f\u3081\u6709\u52b9\u306a\u540c\u6642\u62bc\u4e0b\u6570\u306f6\u30ad\u30fc\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002\u30e2\u30c7\u30a3\u30d5\u30a1\u30a4\u30e4\u30ad\u30fc\u306b\u3064\u3044\u3066\u306f8\u30d3\u30c3\u30c8\u9577\u306e\u30d3\u30c3\u30c8\u30de\u30c3\u30d7\u3067\u8868\u73fe\u3055\u308c\u30ad\u30fc\u30b3\u30fc\u30c9\u3092\u6301\u305f\u306a\u3044\u306e\u3067\u3001\u6587\u5b57\u30ad\u30fc\u30925\u3064\u62bc\u3057\u305f\u72b6\u614b\u30678\u3064\u306e\u4fee\u98fe\u30ad\u30fc\u3092\u3059\u3079\u3066\u540c\u6642\u306b\u62bc\u3059\u3068\u3044\u3063\u305f\u64cd\u4f5c\u306f\u6709\u52b9\u306e\u3088\u3046\u3060\u3002<\/p>\n<h5>COM9\u304c\u8ffd\u52a0\u3055\u308c\u30ad\u30fc\u30dc\u30fc\u30c9\u306b\u306a\u3063\u305f<\/h5>\n<p>\u3053\u306e\u30b9\u30b1\u30c3\u30c1\u3092\u30d3\u30eb\u30c9\u3057\u3066\u9001\u308a\u8fbc\u3080\u307e\u3067\u306f\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306fCOM8\u3060\u3063\u305f\u306e\u3060\u3051\u3069\u3001\u66f8\u304d\u8fbc\u307f\u304c\u5b8c\u4e86\u3057\u305f\u3089\u518d\u5ea6Pro Micro\u7528\u306e\u30c9\u30e9\u30a4\u30d0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u59cb\u307e\u308aCOM9\u304c\u8ffd\u52a0\u3055\u308c\u3001COM8\u306f\u6d88\u3048\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u5c11\u3005\u306e\u624b\u76f4\u3057\u3066\u3068\u30dc\u30fc\u30c9\u3078\u306e\u66f8\u304d\u8fbc\u307f\u3092\u7e70\u308a\u8fd4\u3057\u305f\u304c\u3001Pro Micro\u5074\u306b\u7528\u610f\u3057\u305f\u30ea\u30bb\u30c3\u30c8\u30b9\u30a4\u30c3\u30c1\u306b\u89e6\u3089\u306a\u304f\u3066\u3082\u3001Arduino IDE\u306e<strong>\u30de\u30a4\u30b3\u30f3\u30dc\u30fc\u30c9\u306b\u66f8\u304d\u8fbc\u3080<\/strong> \u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3060\u3051\u3067\u30d3\u30eb\u30c9\u3057\u305f\u30b9\u30b1\u30c3\u30c1\u304c\u66f8\u304d\u8fbc\u307e\u308c\u305f\u3002<br \/>\n\u66f8\u8fbc\u307f\u3092\u59cb\u3081\u308b\u6642\u70b9\u3067Pro Micro\u306b\u30ea\u30bb\u30c3\u30c8\u304c\u304b\u304b\u308a\u3001\u4e00\u6642\u7684\u306b\u73fe\u308c\u308bCOM7\u3092\u4ecb\u3057\u3066\u8ee2\u9001\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u3088\u3046\u3060\u3063\u305f\u3002\u8ee2\u9001\u3057\u305f\u30b9\u30b1\u30c3\u30c1\u306e\u5b9f\u884c\u304c\u59cb\u307e\u308b\u6642\u70b9\u3067COM7\u306f\u6d88\u3048COM9\u304c\u73fe\u308c\u3066\u3044\u305f\u3002\u305d\u3057\u3066\u3001Pro Micro\u306b\u63a5\u7d9a\u3057\u305f\u30ad\u30fc\u30d1\u30c3\u30c9\u3067\u306e\u64cd\u4f5c\u7d50\u679c(\u6587\u5b57\u51fa\u529b)\u306f\u3001PC\u5074\u304b\u3089\u307f\u3066\u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u3053\u308c\u306f\u3042\u304f\u307e\u3067\u3082Windows10\u306ePC\u3067\u3001Arduino IDE(1.8.3)\u3092\u4f7f\u3063\u3066\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u304d\u306e\u8a71\u3067\u3001\u5225\u30d0\u30fc\u30b8\u30e7\u30f3\u306eWindows\u3084\u5225\u306eOS\u3067\u306f\u9055\u3063\u305f\u52d5\u304d\u3092\u3059\u308b\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3057\u3001\u3042\u3089\u304b\u3058\u3081\u30c9\u30e9\u30a4\u30d0\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<p>Windows\u30a2\u30af\u30bb\u30b5\u30ea\u306b\u3042\u308b\u300c\u30e1\u30e2\u5e33\u300d\u3092\u958b\u3044\u3066\u3001\u30ad\u30fc\u3092\u9806\u306b\u6253\u3064\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<figure id=\"attachment_8027\" aria-describedby=\"caption-attachment-8027\" style=\"width: 318px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/0d40a5e4a645fc6b96e767d64ac0878e-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8027\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/0d40a5e4a645fc6b96e767d64ac0878e-1.png\" alt=\"\u30e1\u30e2\u5e33\" width=\"318\" height=\"197\" \/><\/a><figcaption id=\"caption-attachment-8027\" class=\"wp-caption-text\">\u30e1\u30e2\u5e33\u306b\u5165\u529b<\/figcaption><\/figure>\n<p>1\u884c\u76ee\u304c\u305d\u306e\u307e\u307e\u30012\u884c\u76ee\u304c\u7dd1\u8272\u306e\u30ad\u30fc(SW10 = SHIFT)\u3092\u62bc\u3057\u306a\u304c\u3089\u5165\u529b\u3057\u305f\u3068\u3053\u308d\u3002\u30b7\u30d5\u30c8\u5074\u306f\u3001\u65e5\u672c\u8a9e\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u8a18\u53f7\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<h5>Windows7\u306e\u30ce\u30fc\u30c8PC\u306b\u3064\u306a\u3044\u3067\u307f\u308b\u3068\u30c9\u30e9\u30a4\u30d0\u3092\u63a2\u3057\u306b\u884c\u3063\u305f<\/h5>\n<p>\u3042\u3063\u3055\u308a\u3068\u52d5\u3044\u3066\u304f\u308c\u305f\u306e\u3067\u3001USB\u30b1\u30fc\u30d6\u30eb\u3092Windows7\u306e\u30ce\u30fc\u30c8PC\u306b\u3064\u306a\u3044\u3067\u307f\u305f\u3002\u30d7\u30e9\u30b0\u30a2\u30f3\u30c9\u30d7\u30ec\u30a4\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u78ba\u8a8d\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u3042\u3089\u304b\u3058\u3081Windows\u3092\u7acb\u3061\u4e0a\u3052\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u3092\u8868\u793a\u3057\u305f\u72b6\u614b\u3067\u884c\u3063\u3066\u307f\u305f\u3002<\/p>\n<figure id=\"attachment_8028\" aria-describedby=\"caption-attachment-8028\" style=\"width: 536px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/promicro1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8028\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/promicro1.png\" alt=\"windows7 and pro micro\" width=\"536\" height=\"264\" \/><\/a><figcaption id=\"caption-attachment-8028\" class=\"wp-caption-text\">Windows7\u306ePC\u306b\u3064\u306a\u3044\u3060\u3068\u3053\u308d1<\/figcaption><\/figure>\n<p>\u307e\u305a\u306f\u4e0a\u306e\u3088\u3046\u306b\u3001SpakFun Pro Micro\u306e\u30c9\u30e9\u30a4\u30d0\u3092\u63a2\u3057\u306b\u3044\u3063\u305f\u3002Windows10\u306b\u306f\u3042\u3089\u304b\u3058\u3081\u4ed5\u8fbc\u307e\u308c\u3066\u3044\u308b\u3088\u3046\u3060\u304c\u3001\u53e4\u3044Windows7 Pro \u306b\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u3060\u3002<\/p>\n<p>\u3057\u3070\u3089\u304f\u5f85\u3063\u3066\u307f\u305f\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3001\u691c\u7d22\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u305f\u3002\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<figure id=\"attachment_8029\" aria-describedby=\"caption-attachment-8029\" style=\"width: 536px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/promicro2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8029\" src=\"https:\/\/okiraku-camera.tokyo\/blog\/wp-content\/uploads\/2018\/09\/promicro2.png\" alt=\"windows7 and pro micro\" width=\"536\" height=\"235\" \/><\/a><figcaption id=\"caption-attachment-8029\" class=\"wp-caption-text\">Windows7\u306ePC\u306b\u3064\u306a\u3044\u3060\u3068\u3053\u308d2<\/figcaption><\/figure>\n<p>SparkFun Pro Micro\u7528\u30c9\u30e9\u30a4\u30d0\u306f\u3042\u304d\u3089\u3081\u305f\u3082\u306e\u306e\u3001\u300cUSB\u5165\u529b\u30c7\u30d0\u30a4\u30b9\u300d\u3068\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3088\u3046\u306a\u306e\u3067\u3001\u3084\u306f\u308a\u30e1\u30e2\u5e33\u3092\u958b\u3044\u3066\u30ad\u30fc\u3092\u62bc\u3057\u3066\u307f\u308b\u3068\u3001Windows10\u306e\u3068\u304d\u3068\u540c\u69d8\u306b\u5165\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u3002\u5165\u529b\u30c7\u30d0\u30a4\u30b9\u3068\u3057\u3066\u306f\u30d7\u30e9\u30b0\u30a2\u30f3\u30c9\u30d7\u30ec\u30a4\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3060\u308d\u3046\u3002<\/p>\n<p>SparkFun Pro Micro\u7528\u30c9\u30e9\u30a4\u30d0\u306f\u3001\u304a\u305d\u3089\u304fWindows7(8.1\u3082\u540c\u69d8\u304b?)\u3067Arduino IDE\u3092\u4f7f\u3063\u3066\u958b\u767a\u3092\u884c\u3046\u3068\u304d\u306b\u5fc5\u8981\u306b\u306a\u308b\u306e\u3060\u308d\u3046\u3002SparkFun\u793e\u306e\u30da\u30fc\u30b8\u306b\u306f<a href=\"https:\/\/github.com\/sparkfun\/Arduino_Boards\/archive\/master.zip\">\u30c9\u30e9\u30a4\u30d0\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081\u306e\u30ea\u30f3\u30af<\/a>\u3082\u3042\u308b\u3057\u3001\u305d\u306e\u5185\u5bb9\u306f<a href=\"https:\/\/github.com\/sparkfun\/Arduino_Boards\" target=\"_blank\" rel=\"noopener noreferrer\">github\u3067\u3082\u53c2\u7167\u3067\u304d\u308b<\/a>\u3002<\/p>\n<h2>\u304d\u3087\u3046\u306e\u307e\u3068\u3081<\/h2>\n<p>\u79cb\u6708\u96fb\u5b50\u306e\u30ad\u30fc\u30d1\u30c3\u30c9\u5de5\u4f5c\u30ad\u30c3\u30c8\u306f\u5b89\u4fa1\u3067\u5de5\u4f5c\u3082\u3057\u3084\u3059\u3044\u3002\u3082\u3046\u3061\u3087\u3063\u3068\u5927\u304d\u3044\u3068\u5b9f\u7528\u7684\u3002<\/p>\n<p>\u3075\u3064\u3046\u306e\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u3088\u3046\u306b\u3001\u30ad\u30fc\u30de\u30c8\u30ea\u30c3\u30af\u30b9\u306e\u30b9\u30ad\u30e3\u30f3\u3001\u30ad\u30fc\u306e\u62bc\u4e0b\u30ea\u30ea\u30fc\u30b9\u306e\u691c\u51fa\u3001\u30ad\u30fc\u30b3\u30fc\u30c9\u306e\u751f\u6210\u3092\u5b9f\u88c5\u3057\u3066\u307f\u305f\u3002\u4eca\u56de\u306f12\u30ad\u30fc\u3060\u304c120\u30ad\u30fc\u3067\u3082\u57fa\u672c\u7684\u306b\u306f\u540c\u3058\u3060\u308d\u3046\u3002<\/p>\n<p>\u3080\u304b\u3057\u5049\u3044\u4eba\u306b\u3001\u300c\u30ad\u30fc\u30dc\u30fc\u30c9\u306f\u7d20\u4eba\u3055\u3093\u3067\u3082\u53e3\u304c\u51fa\u305b\u308b\u304b\u3089\u4e91\u3005\u300d\u3068\u3044\u3046\u8a71\u3092\u4f3a\u3063\u305f\u3053\u3068\u304c\u3042\u308b\u304c\u3001Pro Micro\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u624b\u3082\u51fa\u305b\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u3002\u9762\u767d\u305d\u3046\u3002<\/p>\n<p>Keyboard\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f\u3001<em>press()\u3084 release()<\/em> \u306e\u4ed6\u306b\u3001<em>write();<\/em> \u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3082\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3002\u3053\u306e\u30af\u30e9\u30b9\u306f Print\u30af\u30e9\u30b9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u306e\u3067\u3001<em>Keyboard.print(&#8220;ohayougozaimasu.&#8221;);<\/em> \u3068\u304b\u66f8\u3051\u3070\u3001\u30ad\u30fc\u30921\u3064\u62bc\u3059\u3060\u3051\u3067\u6328\u62f6\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002\u305f\u3060\u3001PC\u5074\u3067IME\u304c\u958b\u3044\u3066\u3044\u3066\u30ed\u30fc\u30de\u5b57\u304b\u306a\u5165\u529b\u304c\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u6b21\u56de\u306f\u3053\u306e\u3042\u305f\u308a\u306e\u3053\u3068\u306b\u3042\u305f\u3063\u3066\u307f\u308b\u4e88\u5b9a\u3002<\/p>\n<p><strong>\u8ffd\u8a18<\/strong> \u540c\u3058\u30ad\u30fc\u30d1\u30c3\u30c9\u3092 ProMicro\u30d4\u30f3\u4e92\u63dbBLE\u30e2\u30b8\u30e5\u30fc\u30eb\u306e<strong><a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?p=13045\" target=\"_blank\" rel=\"noopener noreferrer\">ISP1807 Micro\u30dc\u30fc\u30c9 \u306b\u63a5\u7d9a\u3057\u305f\u8a71<\/a><\/strong>\u3082\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 SparkFun\u793e\u306ePro Micro(\u306e\u30b3\u30d4\u30fc\u54c1)\u306b\u3001\u79cb\u6708\u96fb\u5b50\u306e4\u00d73\u30ad\u30fc\u30d1\u30c3\u30c9\u3092\u63a5\u7d9a\u3057\u3001PC\u306e\u5165\u529b\u88c5\u7f6e(HID\u30ad\u30fc\u30dc\u30fc\u30c9)\u306b\u3057\u3066\u307f\u308b\u3002 Arduino Pro Micro\u3068\u66f8\u3044\u3066\u3057\u307e\u3063\u305f\u3051\u308c\u3069\u3001Pro Micr &hellip; <a href=\"https:\/\/okiraku-camera.tokyo\/blog\/?p=7988\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Arduino Pro Micro\u306b\u30ad\u30fc\u30d1\u30c3\u30c9\u3092\u3064\u306a\u3052\u3066PC\u306e\u5165\u529b\u88c5\u7f6e\u306b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":7973,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[65,103,105,100],"class_list":["post-7988","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","tag-arduino","tag-promicro","tag-windows","tag-100"],"_links":{"self":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7988","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=7988"}],"version-history":[{"count":0,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7988\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=\/wp\/v2\/media\/7973"}],"wp:attachment":[{"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/okiraku-camera.tokyo\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}