如何使用Hasu USB to USB Controller Converter刷寫tmk固件交換Caps和Ctrl

相關連接
購買Hasu USB to USB Controller Converter:https://www.1upkeyboards.com/shop/controllers/usb-to-usb-converter/
TMK按鍵編輯器:http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?usb_usb
TMK固件:https://github.com/tmk/tmk_keyboard/tree/master/converter/usb_usb
刷寫方法:https://github.com/tmk/tmk_keyboard/wiki#flash-firmware
論壇中的介紹:https://geekhack.org/index.php?topic=69169.0php

步驟

  1. 推薦使用在線生成工具,跳轉到第7步。若是但願本身編譯請繼續。下載固件源碼,準備編譯。
    本身編譯的固件能夠修改編譯的參數,從而使用鍵盤上的絕大多數按鍵。具體參見https://github.com/tmk/tmk_core/blob/master/doc/keymap.md
    筆者沒有研究具體交換按鍵的方法,但測試了在Ubuntu下的依賴關係,確保能夠編譯經過。
  2. 這裏使用Ubuntu 16.04.3 LTS
  3. 安裝依賴sudo apt install gcc-avr dfu-programmer gcc-arm-non-eabi avr-libc
  4. 克隆源碼git clone https://github.com/tmk/tmk_keyboard.git; cd tmk_keyboard
  5. 克隆Git submodulegit submodule init; git submodule update
  6. 編譯源碼cd converter/usb_usb; make -f Makefile.unimap。跳轉到第8步。
  7. 訪問TMK按鍵編輯器修改本身須要的按鍵序列,並下載固件
  8. 你就會獲得一個.hex的文件,這個就是固件準備刷入。
  9. 下載刷寫工具https://www.microchip.com/developmenttools/ProductDetails/flip不清楚爲何沒有Mac版的,也只能識別爲鍵盤驅動,沒法掛載到虛擬機。推薦使用Windows系統進行刷寫。
  10. 打開刷寫工具flip,點擊Device - Select選擇你芯片上的型號,我這裏是ATmega32U4
  11. 選擇Settings - Communication - USB,再點擊控制器上的按鈕。若是這裏提示AtLibUsbDfu.dll找不到,請查看https://imgur.com/a/bnwzy
  12. 選擇File - Load HEX File,並選擇剛纔的.hex文件。
  13. 勾選Erase Blank Check Program Verify並點擊Run按鈕。
  14. 從新插拔USB設備,或點擊Start Application按鈕。以使用新固件。
相關文章
相關標籤/搜索