[{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/001/397/original/case-with-pcbs.jpeg?1731619710","metadata":{"caption":""}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003cp\u003eI have a confession to make: I don't love playing video games with a keyboard. While the keyboard/mouse combo is the preferred input method for most PC gamers, I find my left hand often gets cramped using WASD-based keyboard input, and wish for a more ergonomic input method sometimes.\u003c/p\u003e\n\u003cp\u003eI had an idea to make a simple adapter to map Wii Nunchuck input into keyboard events a game would recognize. I figured I could map the Nunchuck's analog stick to keyboard events for movement, and could map the two digital buttons on the Nunchuck to other keys while I was at it.\u003c/p\u003e\n\u003cp\u003eThis setup would allow me to use the Nunchuck to partially or entirely replace input from my keyboard.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n        \u003ch1\u003eOverview\u003c/h1\u003e\n\u003cp\u003eThis no-solder adapter is built with either a \u003cstrong\u003eQT Py RP2040\u003c/strong\u003e or a \u003cstrong\u003eTrinkey QT2040\u003c/strong\u003e microcontroller, coupled with a \u003cstrong\u003eWii Nunchuck breakout \u003c/strong\u003eboard connected by a \u003cstrong\u003eStemma QT cable\u003c/strong\u003e. The firmware, written in CircuitPython 9, translates Wii Nunchuck analog stick and button events to keyboard events. Thanks to CircuitPython, customization is easy, allowing you to make changes to the generated key events any time. So far, I have used this adapter for games like XCOM-2, FTL: Faster Than Light, and Half-Life 2!\u003c/p\u003e\n\u003cp\u003eI've included 2 build variants here, one for those with access to a 3D printer, and one for those without. The QT Py build uses a 3D printed case for mounting the QT Py and the Nunchuck breakout board. The Trinkey QT2040 build takes advantage of the identical screw hole placing on the Trinkey and the Nunchuck breakout adapter board, using a handy standoff mounting kit to make a nice tidy little USB-A adapter.\u003c/p\u003e\n      ","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch1\u003eTable of Contents\u003c/h1\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#qt-py-rp2040-build-with-3d-printed-parts-3187745\"\u003eQT Py RP2040 build with 3D printed parts\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#materials-3187749\"\u003eMaterials\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#install-circuitpython-3187750\"\u003eInstall CircuitPython\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#install-firmware-source-3187751\"\u003eInstall Firmware Source\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#build-steps-3187752\"\u003eBuild Steps\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#trinkey-qt-2040-build-3187747\"\u003eTrinkey QT2040 build (no 3D printer needed)\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#materials-3187753\"\u003eMaterials\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#install-circuitpython-3187634\"\u003eInstall CircuitPython\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#install-firmware-source-3187636\"\u003eInstall Firmware Source\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#build-steps-3187633\"\u003eBuild Steps\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#operation-3187637\"\u003eOperation\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#customization-3187638\"\u003eCustomization\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n      \n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch1\u003eQT Py RP2040 build with 3D printed parts\u003c/h1\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/001/395/original/case-with-pcbs.jpeg?1731619329","metadata":{"caption":""}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003cp\u003eIf you have access to a 3D printer, this is the recommended build. Follow the instructions in this section to build the adapter.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eMaterials\u003c/h2\u003e\n\u003cp\u003eThese materials are required for the QT Py build:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ca href=\"https://www.adafruit.com/product/342\"\u003eWii Nunchuck controller\u003c/a\u003e (if you don't already have one)\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://www.adafruit.com/product/342\"\u003eWii Nunchuck breakout adapter\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003e\u003ca href=\"https://www.adafruit.com/product/4399\"\u003e50mm Stemma QT cable\u003c/a\u003e\u003c/strong\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://www.adafruit.com/product/4900\"\u003eQT Py RP2040\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\n\u003ca href=\"https://www.adafruit.com/product/3299\"\u003eM2.5 screws and nuts\u003c/a\u003e\n\u003cul\u003e\n\u003cli\u003e2 M2.5 x 8mm screws\u003c/li\u003e\n\u003cli\u003e2 M2.5 nuts\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003cli\u003eUSB-C cable to plug the adapter into your computer\u003c/li\u003e\n\u003c/ul\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eInstall CircuitPython\u003c/h2\u003e\n\u003cp\u003eInstall the latest stable version of CircuitPython 9 on your QT Py using the directions from\u0026nbsp;\u003ca href=\"https://learn.adafruit.com/adafruit-qt-py-2040/circuitpython\"\u003eQT Py RP2040's learn guide\u003c/a\u003e.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eInstall Firmware Source\u003c/h2\u003e\n\u003cp\u003eDownload or clone the CircuitPython 9 \u003ca href=\"https://github.com/apendley/nunchuck-usb-keyboard\"\u003esource code from github\u003c/a\u003e. Copy the contents of the \u003cstrong\u003eCIRCUITPY\u003c/strong\u003e directory into the root of your QT Py or Trinkey's \u003cstrong\u003eCIRCUITPY\u003c/strong\u003e drive.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eBuild Steps\u003c/h2\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch3\u003e1. Print out 3D printed parts\u003c/h3\u003e\n\u003cp\u003eDownload and print out the two 3D printed parts found \u003ca href=\"https://www.printables.com/model/1073364-wii-nunchuck-usb-c-adapter-case/files\"\u003ehere\u003c/a\u003e.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch3\u003e2. Connect QT Py and Nunchuck breakout\u003c/h3\u003e\n\u003cp\u003ePlug one end of the 50mm Stemma QT cable into the QT Py and the other end into either Stemma QT port on the Nunchuck breakout adapter.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n        \u003ch3\u003e3. Mount QT Py\u003c/h3\u003e\n\u003cp\u003eSnap the QT Py into the snap-fit geometry in the case as shown in the \u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#qt-py-rp2040-build-with-3d-printed-parts-3187745\"\u003ephoto above\u003c/a\u003e.\u003c/p\u003e\n      \n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n        \u003ch3\u003e4. Mount Nunchuck Breakout\u003c/h3\u003e\n\u003cp\u003eUsing 2 M2.5 scews and nuts, mount the Nunchuck breakout adapter to the case as shown in the \u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#qt-py-rp2040-build-with-3d-printed-parts-3187745\"\u003ephoto above\u003c/a\u003e.\u003c/p\u003e\n      \n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n        \u003ch3\u003e5. Attach cover\u003c/h3\u003e\n\u003cp\u003eSnap the 3D printed cover on the the 3D printed case. That's it! \u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#operation-3187637\"\u003eContinue on to the Operation section\u003c/a\u003e for usage details.\u003c/p\u003e\n      \n\n\n\n\n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/001/399/original/case-assembled-with-nunchuck.jpeg?1731619966","metadata":{"caption":""}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch1\u003eTrinkey QT 2040 build\u003c/h1\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/001/396/original/trinkey-assembled.jpeg?1731619460","metadata":{"caption":""}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003cp\u003eIf you do not have a 3D printer, this is the recommended build. Follow the instructions in this section to build the adapter.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eMaterials\u003c/h2\u003e\n\u003cp\u003eThese materials are required for the Trinkey build:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003ca href=\"https://www.adafruit.com/product/342\"\u003eWii Nunchuck controller\u003c/a\u003e (if you don't already have one)\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://www.adafruit.com/product/342\"\u003eWii Nunchuck breakout adapter\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003e\u003ca href=\"https://www.adafruit.com/product/4399\"\u003e50mm Stemma QT cable\u003c/a\u003e\u003c/strong\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://www.adafruit.com/product/5056\"\u003eTrinkey QT2040\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://www.adafruit.com/product/5248\"\u003eStacking M2.5 Hardware Kit for Trinkey QT2040\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e(Optional: USB-A to USB-C adapter, if your computer does not have USB-A ports)\u003c/li\u003e\n\u003c/ul\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eInstall CircuitPython\u003c/h2\u003e\n\u003cp\u003eInstall the latest stable version of CircuitPython 9 on your Trinkey QT2040 using the directions from the \u003ca href=\"https://learn.adafruit.com/adafruit-trinkey-qt2040/circuitpython\"\u003eTrinkey learn guide\u003c/a\u003e.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eInstall firmware source\u003c/h2\u003e\n\u003cp\u003eDownload or clone the CircuitPython 9 \u003ca href=\"https://github.com/apendley/nunchuck-usb-keyboard\"\u003esource code from github\u003c/a\u003e. Copy the contents of the \u003cstrong\u003eCIRCUITPY\u003c/strong\u003e directory into the root of your QT Py or Trinkey's \u003cstrong\u003eCIRCUITPY\u003c/strong\u003e drive.\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch2\u003eBuild Steps\u003c/h2\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n        \u003ch3\u003e1. Mount Nunchuck to Trinkey\u003c/h3\u003e\n\u003cp\u003eUsing the stacking M2.5 hardware kit, mount the Nunchuck adapter to the QT2040 Trinkey in whatever configuration you like. One possible configuration is shown in the \u003ca href=\"https://adafruit-playground.com/u/squid_jpg/pages/wii-nunchuck-usb-adapter#trinkey-qt-2040-build-3187747\"\u003ephoto above\u003c/a\u003e.\u003c/p\u003e\n      \n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n        \u003ch3\u003e2. Connect Trinkey and Nunchuck breakout\u003c/h3\u003e\n\u003cp\u003ePlug one end of the 50mm Stemma QT cable into the Trinkey, and the other into the Nunchuck breakout. That's it!\u003c/p\u003e\n      \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","metadata":{}},{"element_type":"user_image","content":"https://cdn-learn.adafruit.com/user_assets/assets/000/001/400/original/trinkey-with-nunhuck.jpeg?1731622641","metadata":{"caption":""}},{"element_type":"text","content":"\n  \n  \n  \n  \n  \n        \u003ch1\u003eOperation\u003c/h1\u003e\n\u003cp\u003ePlug the Nunchuck controller into the adapter, making sure the notch on the Nunchuck connector is on the same side as the\u0026nbsp;\u003cstrong\u003eNotch Up\u003c/strong\u003e text on the breakout. Connect the adapter to your computer depending on which version you built:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eQT Py\u003c/strong\u003e: Connect the adapter to your computer with a USB-C cable.\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eTrinkey\u003c/strong\u003e: Plug the Trinkey into a USB-A port on your computer or USB hub.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eOnce connected, you can use the analog stick and C and Z buttons to trigger keyboard events on your computer!\u003c/p\u003e\n      \n\n\n\n\n","metadata":{}},{"element_type":"text","content":"\n  \n  \n        \u003ch1\u003eCustomization\u003c/h1\u003e\n\u003cp\u003eYou can easily customize the adapter's settings by modifying the \u003cstrong\u003enunchuck_config.py\u003c/strong\u003e file on your QT Py/Trinkey's \u003cstrong\u003eCIRCUITPY\u003c/strong\u003e drive. The settings are contained in a dictionary using the following keys:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003e\"up\"\u003c/strong\u003e: key code for the key to be pressed when the analog stick is pressed up\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e\"right\"\u003c/strong\u003e: key code for the key to be pressed when the analog stick is pressed right\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e\"down\"\u003c/strong\u003e: key code for the key to be pressed when the analog stick is pressed down\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e\"left\"\u003c/strong\u003e: key code for the key to be pressed when the analog stick is pressed left\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e\"c\"\u003c/strong\u003e: key code for the key to be pressed when the C button is pressed\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e\"z\"\u003c/strong\u003e: key code for the key to be pressed when the Z button is pressed\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e\"x_dead_zone\"\u003c/strong\u003e: threshold for detecting key presses on the analog stick's x axis\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e\"y_dead_zone\"\u003c/strong\u003e: threshold for detecting key presses on the analog stick's y axis\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e\"debounce_time\"\u003c/strong\u003e: short delay between Nunchuck sampling to create a simple debounce mechanism. By default the debounce time is set to 1/60th of a second.\u003c/li\u003e\n\u003cli\u003e\n\u003cstrong\u003e\"debug\"\u003c/strong\u003e: if \u003cstrong\u003eTrue\u003c/strong\u003e, debug information will be printed to the serial console.\u0026nbsp;\u003cstrong\u003eFalse\u003c/strong\u003e by default.\u003c/li\u003e\n\u003c/ul\u003e\n      \n\n","metadata":{}}]