Mac上配置GH60键盘
安装必要的工具 brew install Caskroom/cask/crosspack-avr brew install dfu-programmer cd ~ git clone --recursive https://github.com/kairyu/tmk_keyboard_custom.git 检查 avr-gcc 命令是否可用 直接在命令行执行 avr-gcc, 如果出现command not found, 在命令行执行: PATH="/usr/local/CrossPack-AVR/bin:$PATH" export $PATH 以上命令是临时把路径 /usr/local/CrossPack-AVR/bin 放到 PATH 中,关闭Terminal后失效 修改配置文件来支持GH60_REV_CHN cd ./tmk_keyboard_custom/keyboard/gh60 vi config.h 找到 #define CONFIG_H, 在底下加上 #define GH60_REV_CHN vi Makefile 注释或删掉下面这行代码 KEYMAP_IN_EEPROM_ENABLE = yes # Read keymap from eeprom 连接测试键盘 连接后输入入下列指令 system_profiler SPUSBDataType 应该会出现: GH60: Product ID: 0x6060 Vendor ID: 0xfeed Version: 0.01 Speed: Up to 12 Mb/sec Manufacturer: geekhack Location ID: 0x14400000 / 37 Current Available (mA): 500 Current Required (mA): 100 Extra Operating Current (mA): 0 然后按下键盘背部的按钮...