1/*! For license information please see d52b8ab9.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkcubic_9_com=self.webpackChunkcubic_9_com||[]).push([[7120],{28453:(n,e,r)=>{r.d(e,{R:()=>l,x:()=>a});var i=r(96540);const c={},t=i.createContext(c);function l(n){const e=i.useContext(t);return i.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function a(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(c):n.components||c:l(n.components),i.createElement(t.Provider,{value:e},n.children)}},77833:(n,e,r)=>{r.d(e,{A:()=>t});var i=r(96540),c=function(){return c=Object.assign||function(n){for(var e,r=1,i=arguments.length;r<i;r++)for(var c in e=arguments[r])Object.prototype.hasOwnProperty.call(e,c)&&(n[c]=e[c]);return n},c.apply(this,arguments)};var t=i.forwardRef((function(n,e){var r=i.useState(!1),t=r[0],l=r[1],a=i.useState(n.alwaysLoadIframe||!1),o=a[0],d=a[1],s=encodeURIComponent(n.id),h="string"==typeof n.playlistCoverId?encodeURIComponent(n.playlistCoverId):null,u=n.title,p=n.poster||"hqdefault",x=n.announce||"Watch",j=new URLSearchParams(c(c(c(c({},n.muted?{mute:"1"}:{}),n.alwaysLoadIframe?{}:{autoplay:"1",state:"1"}),n.enableJsApi?{enablejsapi:"1"}:{}),n.playlist?{list:s}:{})),f=n.noCookie;f=n.cookie?"https://www.youtube.com":"https://www.youtube-nocookie.com";var E=n.playlist?"".concat(f,"/embed/videoseries?").concat(j.toString()):"".concat(f,"/embed/").concat(s,"?").concat(j.toString()),m=n.webp?"webp":"jpg",_=n.webp?"vi_webp":"vi",b=n.thumbnail||(n.playlist?"https://i.ytimg.com/".concat(_,"/").concat(h,"/").concat(p,".").concat(m):"https://i.ytimg.com/".concat(_,"/").concat(s,"/").concat(p,".").concat(m)),N=n.activatedClass||"lyt-activated",y=n.adNetwork||!1,T=n.aspectHeight||9,k=n.aspectWidth||16,O=n.iframeClass||"",w=n.playerClass||"lty-playbtn",g=n.wrapperClass||"yt-lite",C=n.onIframeAdded||function(){},v=n.rel?"prefetch":"preload",A=n.containerElement||"article",D=n.style||{};return i.useEffect((function(){o&&C()}),[o]),i.createElement(i.Fragment,null,i.createElement("link",{rel:v,href:b,as:"image"}),i.createElement(i.Fragment,null,t&&i.createElement(i.Fragment,null,i.createElement("link",{rel:"preconnect",href:f}),i.createElement("link",{rel:"preconnect",href:"https://www.google.com"}),y&&i.createElement(i.Fragment,null,i.createElement("link",{rel:"preconnect",href:"https://static.doubleclick.net"}),i.createElement("link",{rel:"preconnect",href:"https://googleads.g.doubleclick.net"})))),i.createElement(A,{onPointerOver:function(){t||l(!0)},onClick:function(){o||d(!0)},className:"".concat(g," ").concat(o?N:""),"data-title":u,style:c(c({backgroundImage:"url(".concat(b,")")},{"--aspect-ratio":"".concat(T/k*100,"%")}),D)},i.createElement("button",{type:"button",className:w,"aria-label":"".concat(x," ").concat(u)}),o&&i.createElement("iframe",{ref:e,className:O,title:u,width:"560",height:"315",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,src:E})))}))},86473:(n,e,r)=>{r.r(e),r.d(e,{assets:()=>d,contentTitle:()=>o,default:()=>u,frontMatter:()=>a,metadata:()=>i,toc:()=>s});const i=JSON.parse('{"id":"Devel/\u96fb\u5b50\u5de5\u4f5c/Arduino/\u697d\u5668","title":"\u697d\u5668","description":"\u4eca\u56de\u306fWii\u306e\u30cc\u30f3\u30c1\u30e3\u30af\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092Arduino\u306b\u63a5\u7d9a\u3057\u3066\u697d\u5668\u3092\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002","source":"@site/docs/Devel/\u96fb\u5b50\u5de5\u4f5c/Arduino/\u697d\u5668.md","sourceDirName":"Devel/\u96fb\u5b50\u5de5\u4f5c/Arduino","slug":"/Devel/\u96fb\u5b50\u5de5\u4f5c/Arduino/\u697d\u5668","permalink":"/Devel/\u96fb\u5b50\u5de5\u4f5c/Arduino/\u697d\u5668","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{},"sidebar":"tutorialSidebar","previous":{"title":"\u5965\u6b6f\u3092\u565b\u3093\u3067\u3044\u308b\u9593\u3060\u3051Vine\u3092\u64ae\u5f71\u3059\u308b\u88c5\u7f6e","permalink":"/Devel/\u96fb\u5b50\u5de5\u4f5c/Arduino/\u5965\u6b6f\u3092\u565b\u3093\u3067\u3044\u308b\u9593\u3060\u3051Vine\u3092\u64ae\u5f71\u3059\u308b\u88c5\u7f6e"},"next":{"title":"\u8d85\u97f3\u6ce2\u8ddd\u96e2\u30bb\u30f3\u30b5","permalink":"/Devel/\u96fb\u5b50\u5de5\u4f5c/Arduino/\u8d85\u97f3\u6ce2\u8ddd\u96e2\u30bb\u30f3\u30b5"}}');var c=r(74848),t=r(28453),l=r(77833);const a={},o=void 0,d={},s=[{value:"\u5fc5\u8981\u306a\u3082\u306e",id:"\u5fc5\u8981\u306a\u3082\u306e",level:2},{value:"\u624b\u9806",id:"\u624b\u9806",level:2},{value:"\u904a\u3073\u65b9",id:"\u904a\u3073\u65b9",level:2},{value:"\u8a2d\u5b9a\u306b\u3064\u3044\u3066",id:"\u8a2d\u5b9a\u306b\u3064\u3044\u3066",level:2}
2,{value:"\u30b9\u30b1\u30c3\u30c1",id:"\u30b9\u30b1\u30c3\u30c1",level:2},{value:"\u5099\u8003",id:"\u5099\u8003",level:2},{value:"\u53c2\u8003",id:"\u53c2\u8003",level:2}];function h(n){const e={a:"a",code:"code",h2:"h2",li:"li",ol:"ol",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,t.R)(),...n.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{class:"markdown",children:(0,c.jsx)("img",{src:r(92019).A,style:{width:"20%"}})}),"\n",(0,c.jsxs)(e.p,{children:["\u4eca\u56de\u306fWii\u306e",(0,c.jsx)(e.a,{href:"http://www.amazon.co.jp/exec/obidos/ASIN/B000KF9E6Q/cubic9com-22",children:"\u30cc\u30f3\u30c1\u30e3\u30af\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9"}),"\u3092Arduino\u306b\u63a5\u7d9a\u3057\u3066\u697d\u5668\u3092\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002"]}),"\n",(0,c.jsx)(e.p,{children:"\u30cc\u30f3\u30c1\u30e3\u30af\u3092\u4f7f\u3063\u305f\u30c6\u30eb\u30df\u30f3\u306e\u3088\u3046\u306a\u697d\u5668\u306a\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305aChuckmin\u3068\u540d\u3065\u3051\u307e\u3057\u305f\u3002"}),"\n","\n",(0,c.jsx)("div",{className:"video-container",children:(0,c.jsx)(l.A,{id:"DkiVTY3TbOo",webp:!0})}),"\n",(0,c.jsx)(e.h2,{id:"\u5fc5\u8981\u306a\u3082\u306e",children:"\u5fc5\u8981\u306a\u3082\u306e"}),"\n",(0,c.jsxs)(e.ul,{children:["\n",(0,c.jsx)(e.li,{children:"Arduino\uff08\u4e0b\u8a18\u306fArduino Uno\u306b\u5834\u5408\u306e\u63a5\u7d9a\u4f8b\u3067\u3059\u3002Arduino Leonardo\u306e\u5834\u5408\u306e\u63a5\u7d9a\u65b9\u6cd5\u306f\u5099\u8003\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\uff09"}),"\n",(0,c.jsx)(e.li,{children:(0,c.jsx)(e.a,{href:"http://www.amazon.co.jp/exec/obidos/ASIN/B000KF9E6Q/cubic9com-22",children:"\u30cc\u30f3\u30c1\u30e3\u30af\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9"})}),"\n",(0,c.jsx)(e.li,{children:(0,c.jsx)(e.a,{href:"http://www.amazon.co.jp/exec/obidos/ASIN/B014FBU8JW/cubic9com-22",children:"WiiChuck"})}),"\n",(0,c.jsxs)(e.li,{children:["\u30d4\u30f3\u30d8\u30c3\u30c0\uff084P\uff09\uff08\u4f55\u3067\u3082\u826f\u3044\u3067\u3059\u3002\u4eca\u56de\u306f ",(0,c.jsx)(e.a,{href:"http://akizukidenshi.com/catalog/g/gC-03950/",children:"\u79cb\u6708\u96fb\u5b50\u901a\u5546\u3067\u8cfc\u5165\u3057\u307e\u3057\u305f"}),"\u3002\uff09"]}),"\n",(0,c.jsxs)(e.li,{children:[(0,c.jsx)(e.a,{href:"http://akizukidenshi.com/catalog/c/cspeaker2/",children:"\u5727\u96fb\u30d6\u30b6\u30fc"}),"\uff08\u4f55\u3067\u3082\u3088\u3044\u3067\u3059\u3002\u4eca\u56de\u306f TDK PS1740P02E \u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002\uff09"]}),"\n",(0,c.jsxs)(e.li,{children:["chuck_funcs.h\uff08",(0,c.jsx)(e.a,{href:"https://github.com/todbot/wiichuck_adapter/blob/master/firmware/WiichuckDemo/nunchuck_funcs.h",children:"\u3053\u3061\u3089"}),"\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n\u300cRaw\u300d\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066\u540d\u524d\u3092\u3064\u3051\u3066\u4fdd\u5b58\u3002"]}),"\n"]}),"\n",(0,c.jsx)(e.h2,{id:"\u624b\u9806",children:"\u624b\u9806"}),"\n",(0,c.jsxs)(e.ol,{children:["\n",(0,c.jsx)(e.li,{children:"WiiChuck\u306b\u30d4\u30f3\u30d8\u30c3\u30c0\u3092\u534a\u7530\u4ed8\u3051\u3059\u308b\u3002\uff08labs.thingm.com\u3068\u66f8\u3044\u3066\u3042\u308b\u5074\u304b\u3089\u30d4\u30f3\u30d8\u30c3\u30c0\u306e\u77ed\u3044\u65b9\u3092\u5dee\u8fbc\u307f\u3001\u9006\u5074\u304b\u3089\u534a\u7530\u4ed8\u3051\u3059\u308b\u3002\uff09"}),"\n",(0,c.jsx)(e.li,{children:"Arduino\u306eA2\u30d4\u30f3\u306b-\u3001A3\u30d4\u30f3\u306b+\u3001A4\u30d4\u30f3\u306bd\u3001A5\u30d4\u30f3\u306bc\u304c\u633f\u3055\u308b\u3088\u3046\u306b\u633f\u3059\u3002"}),"\n",(0,c.jsx)(e.li,{children:"\u5727\u96fb\u30d6\u30b6\u30fc\u3092GND\u306810\u756a\u30d4\u30f3\u306b\u633f\u3055\u308b\u3088\u3046\u306b\u633f\u3059\u3002"}),"\n",(0,c.jsx)(e.li,{children:"WiiChuck\u306b\u30cc\u30f3\u30c1\u30e3\u30af\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u633f\u3059\u3002\uff08\u30cc\u30f3\u30c1\u30e3\u30af\u306e\u91d1\u5c5e\u7aef\u5b50\u306e\u51f9\u307f\u304c\u3042\u308b\u65b9\u304c\u4e0a\u306b\u306a\u308b\u3088\u3046\u306b\u633f\u3059\u3002\uff09"}),"\n",(0,c.jsx)(e.li,{children:"USB\u30b1\u30fc\u30d6\u30eb\u3092\u633f\u3059\u3002"}),"\n",(0,c.jsx)(e.li,{children:"\u4e0b\u8a18\u30b9\u30b1\u30c3\u30c1\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u4e00\u65e6\u4e0a\u66f8\u304d\u3059\u308b\u3002"}),"\n",(0,c.jsx)(e.li,{children:"\u30b9\u30b1\u30c3\u30c1\u3068\u540c\u3058\u5834\u6240\u306bchuck_funcs.h\u3092\u683c\u7d0d\u3059\u308b\u3002"}),"\n",(0,c.jsx)(e.li,{children:"Arduino\u306b\u66f8\u304d\u8fbc\u3080\u3002"}),"\n"]}),"\n",(0,c.jsx)(e.h2,{id:"\u904a\u3073\u65b9",children:"\u904a\u3073\u65b9"}),"\n",(0,c.jsx)(e.p,{children:"\u3067\u304d\u308b\u64cd\u4f5c\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002\u3050\u306b\u3050\u306b\u64cd\u4f5c\u3057\u3066\u904a\u3093\u3067\u304f\u3060\u3055\u3044\u3002"}),"\n",(0,c.jsxs)(e.ul,{children:["\n",(0,c.jsx)(e.li,{children:"C\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001\u97f3\u304c\u51fa\u307e\u3059\u3002"}),"\n",(0,c.jsx)(e.li,{children:"\u30cc\u30f3\u30c1\u30e3\u30af\u3092\u5de6\u306b\u5012\u3059\u3068\u97f3\u968e\u304c\u4e0b\u304c\u308a\u3001\u53f3\u306b\u5012\u3059\u3068\u97f3\u968e\u304c\u4e0a\u304c\u308a\u307e\u3059\u3002"}),"\n",(0,c.jsx)(e.li,{children:"\u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af\u3092\u624b\u524d\u306b\u5012\u3059\u3068\u97f3\u7a0b\u304c\u4e0b\u304c\u308a\u3001\u5965\u306b\u5012\u3059\u3068\u97f3\u7a0b\u304c\u4e0a\u304c\u308a\u307e\u3059\u3002"}),"\n"]}),"\n",(0,c.jsx)(e.h2,{id:"\u8a2d\u5b9a\u306b\u3064\u3044\u3066",children:"\u8a2d\u5b9a\u306b\u3064\u3044\u3066"}),"\n",(0,c.jsxs)(e.ul,{children:["\n",(0,c.jsx)(e.li,{children:"DEBUG\u5b9a\u6570\u30921\u306b\u3059\u308b\u3068\u3001\u30b7\u30ea\u30a2\u30eb\u30e2\u30cb\u30bf\u306b\u30cc\u30f3\u30c1\u30e3\u30af\u306e\u30bb\u30f3\u30b5\u306e\u73fe\u5728\u306e\u5024\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002"}),"\n",(0,c.jsx)(e.li,{children:"notes\u914d\u5217\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u308b\u5074\u306b\u5dee\u3057\u66ff\u3048\u308b\u3068\u3001\u30e8\u30ca\u629c\u304d\u9577\u97f3\u968e\u306b\u306a\u308a\u307e\u3059\u3002\u6c11\u8b21\u98a8\u306b\u805e\u3053\u3048\u308b\u97f3\u968e\u3067\u3059\u3002\r\n\u306a\u304a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u97f3\u968e\u306f\u30cb\u30ed\u629c\u304d\u9577\u97f3\u968e\u3067\u3001\u7409\u7403\u6c11\u8b21\u98a8\u306b\u805e\u3053\u3048\u308b\u97f3\u968e\u3067\u3059\u3002"}),"\n"]}),"\n",(0,c.jsx)(e.h2,{id:"\u30b9\u30b1\u30c3\u30c1",children:"\u30b9\u30b1\u30c3\u30c1"}),"\n",(0,c.jsx)(e.pre,{children:(0,c.jsx)(e.code,{className:"language-C",children:'/*\r\n * Chuckmin \r\n *\r\n * 2013 http://cubic9.com \r\n *\r\n * original sketch is WiiChuckDemo\r\n * by 2008 Tod E. Kurt, http://thingm.com/\r\n *\r\n */\r\n\r\n#include <Wire.h>\r\n#include "nunchuck_funcs.h"\r\n\r\n#define NOTE_A5 880\r\n#define NOTE_B5 988\r\n#define NOTE_C6 1047\r\n#define NOTE_D6 1175\r\n#define NOTE_E6 1319\r\n#define NOTE_F6 1397\r\n#define NOTE_G6 1568\r\n#define NOTE_A6 1760\r\n#define NOTE_B6 1976\r\n#define NOTE_C7 2093\r\n#define NOTE_D7 2349\r\n#define NOTE_E7 2637\r\n#define NOTE_F7 2794\r\n#define NOTE_G7 3136\r\n#define NOTE_A7 3520\r\n#define NOTE_B7 3951\r\n#define NOTE_C8 4186\r\n#define NOTE_D8 4699\r\n#define NOTE_E8 5274\r\n#define NOTE_F8 5588\r\n#define NOTE_G8 6272\r\n\r\n#define BUZZER 10\r\n#define DEBUG 0\r\n#define INTERVAL 50\r\n#define LENGTH 100\r\n\r\nint loop_cnt = 0;
2\r\n\r\nbyte accx,accy,accz,zbut,cbut,joyx,joyy;\r\nint ledPin = 13;\r\nint base;\r\nint shift;\r\n\r\n// \u30e8\u30ca\u629c\u304d\u97f3\u968e\r\n/*\r\nint notes[] = {\r\n NOTE_A5, NOTE_C6, NOTE_D6, NOTE_E6, NOTE_G6, \r\n NOTE_A6, NOTE_C7, NOTE_D7, NOTE_E7, NOTE_G7, \r\n NOTE_A7, NOTE_C8, NOTE_D8, NOTE_E8, NOTE_G8\r\n};\r\n*/\r\n\r\n// \u30cb\u30ed\u629c\u304d\u97f3\u968e\r\nint notes[] = {\r\n NOTE_B5, NOTE_C6, NOTE_E6, NOTE_F6, NOTE_G6, \r\n NOTE_B6, NOTE_C7, NOTE_E7, NOTE_F7, NOTE_G7,\r\n NOTE_B7, NOTE_C8, NOTE_E8, NOTE_F8, NOTE_G8\r\n};\r\n\r\nvoid setup()\r\n{\r\n #if DEBUG\r\n Serial.begin(19200);\r\n #endif\r\n nunchuck_setpowerpins();\r\n nunchuck_init(); // send the initilization handshake\r\n \r\n #if DEBUG\r\n Serial.print("WiiChuckDemo ready\\n");\r\n #endif\r\n}\r\n\r\nvoid loop()\r\n{\r\n if( loop_cnt > INTERVAL ) {\r\n loop_cnt = 0;\r\n\r\n nunchuck_get_data();\r\n\r\n accx = nunchuck_accelx(); // ranges from approx 70 - 182\r\n accy = nunchuck_accely(); // ranges from approx 65 - 173\r\n accz = nunchuck_accelz();\r\n zbut = nunchuck_zbutton();\r\n cbut = nunchuck_cbutton(); \r\n joyx = nunchuck_joyx();\r\n joyy = nunchuck_joyy();\r\n \r\n #if DEBUG\r\n Serial.print(" accx:"); Serial.print((byte)accx,DEC);\r\n Serial.print(" accy:"); Serial.print((byte)accy,DEC);\r\n Serial.print(" accz:"); Serial.print((byte)accz,DEC);\r\n Serial.print(" zbut:"); Serial.print((byte)zbut,DEC);\r\n Serial.print(" cbut:"); Serial.print((byte)cbut,DEC);\r\n Serial.print(" joyx:"); Serial.print((byte)joyx,DEC);\r\n Serial.print(" joyy:"); Serial.println((byte)joyy,DEC);\r\n #endif\r\n\r\n base = notes[(accx - 70) / 9];\r\n shift = (joyy - 129) * 8; \r\n tone(BUZZER, (base + shift) * cbut, LENGTH);\r\n }\r\n loop_cnt++;\r\n delay(1);\r\n}\n'})}),"\n",(0,c.jsx)(e.h2,{id:"\u5099\u8003",children:"\u5099\u8003"}),"\n",(0,c.jsx)(e.p,{children:"Arduino Leonardo\u306e\u5834\u5408\u306f\u3001I2C\u306e\u63a5\u7d9a\u30d4\u30f3\u304c\u7570\u306a\u308a\u307e\u3059\u3002"}),"\n",(0,c.jsxs)(e.table,{children:[(0,c.jsx)(e.thead,{children:(0,c.jsxs)(e.tr,{children:[(0,c.jsx)(e.th,{children:"\u5f79\u5272"}),(0,c.jsx)(e.th,{children:"Wiichuck\u3067\u306e\u8868\u793a"}),(0,c.jsx)(e.th,{children:"Uno\u3067\u306e\u63a5\u7d9a\u5148"}),(0,c.jsx)(e.th,{children:"Leonardo\u3067\u306e\u63a5\u7d9a\u5148"})]})}),(0,c.jsxs)(e.tbody,{children:[(0,c.jsxs)(e.tr,{children:[(0,c.jsx)(e.td,{children:"GND"}),(0,c.jsx)(e.td,{children:"-"}),(0,c.jsx)(e.td,{children:"A2"}),(0,c.jsx)(e.td,{children:"GND"})]}),(0,c.jsxs)(e.tr,{children:[(0,c.jsx)(e.td,{children:"V"}),(0,c.jsx)(e.td,{children:"+"}),(0,c.jsx)(e.td,{children:"A3"}),(0,c.jsx)(e.td,{children:"3.3V"})]}),(0,c.jsxs)(e.tr,{children:[(0,c.jsx)(e.td,{children:"SDA\uff08\u30b7\u30ea\u30a2\u30eb\u30c7\u30fc\u30bf\uff09"}),(0,c.jsx)(e.td,{children:"d"}),(0,c.jsx)(e.td,{children:"A4"}),(0,c.jsx)(e.td,{children:"D2 \u307e\u305f\u306f SDA"})]}),(0,c.jsxs)(e.tr,{children:[(0,c.jsx)(e.td,{children:"SCL\uff08\u30b7\u30ea\u30a2\u30eb\u30af\u30ed\u30c3\u30af\uff09"}),(0,c.jsx)(e.td,{children:"c"}),(0,c.jsx)(e.td,{children:"A5"}),(0,c.jsx)(e.td,{children:"D3 \u307e\u305f\u306f SCL"})]})]})]}),"\n",(0,c.jsxs)(e.p,{children:["Leonardo\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001",(0,c.jsx)(e.a,{href:"http://www.switch-science.com/catalog/1083/",children:"\u30c8\u30e9\u30f3\u30b9\u30e2\u30b0\u30ea\u30b7\u30fc\u30eb\u30c9"}),"\u3067\u30d4\u30f3\u3092Uno\u4e92\u63db\u306b\u3059\u308b\u304b\u3001\u30b8\u30e3\u30f3\u30d7\u30ef\u30a4\u30e4\u306a\u3069\u3067\u4e0a\u8a18\u306e\u901a\u308a\u306b\u63a5\u7d9a\u5148\u3092\u5909\u3048\u3066\u304f\u3060\u3055\u3044\u3002"]}),"\n",(0,c.jsx)(e.p,{children:"\u307e\u305f\u3001nunchuck_funcs.h\u306e25\u884c\u76ee\uff5e34\u884c\u76ee\u306f\u6b21\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002"}),"\n",(0,c.jsx)(e.pre,{children:(0,c.jsx)(e.code,{className:"language-C",children:"// Uses port C (analog in) pins as power & ground for Nunchuck\r\nstatic void nunchuck_setpowerpins()\r\n{\r\n/*\r\n#define pwrpin PORTC3\r\n#define gndpin PORTC2\r\n DDRC |= _BV(pwrpin) | _BV(gndpin);\r\n PORTC &= _BV(gndpin);\r\n PORTC |= _BV(pwrpin);\r\n delay(100); // wait for things to stabilize \r\n*/\r\n}\n"})}),"\n",(0,c.jsx)(e.h2,{id:"\u53c2\u8003",children:"\u53c2\u8003"}),"\n",(0,c.jsxs)(e.ul,{children:["\n",(0,c.jsx)(e.li,{children:(0,c.jsx)(e.a,{href:"http://www.switch-science.com/catalog/221/",children:"\u30b9\u30a4\u30c3\u30c1\u30b5\u30a4\u30a8\u30f3\u30b9 - WiiChuck\u30a2\u30c0\u30d7\u30bf"})}),"\n",(0,c.jsx)(e.li,{children:(0,c.jsx)(e.a,{href:"http://todbot.com/blog/2008/02/18/wiichuck-wii-nunchuck-adapter-available/",children:"\u201cWiiChuck\u201d Wii Nunchuck Adapter Available \xbb todbot blog"})}),"\n"]})]})}function u(n={}){const{wrapper:e}={...(0,t.R)(),...n.components};return e?(0,c.jsx)(e,{...n,children:(0,c.jsx)(h,{...n})}):h(n)}},92019:(n,e,r)=>{r.d(e,{A:()=>i});const i=r.p+"assets/images/chuckmin-fd16fd62ffebe4062a9a152cba70980c.jpg"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.