Browse Source

next_usb: Change for TMK converter configuration

master
tmk 8 years ago
parent
commit
4fd703e995
2 changed files with 12 additions and 10 deletions
  1. 2
    2
      converter/next_usb/Makefile
  2. 10
    8
      converter/next_usb/config.h

+ 2
- 2
converter/next_usb/Makefile View File

# MCU name, you MUST set this to match the board you are using # MCU name, you MUST set this to match the board you are using
# type "make clean" after changing this, so all files will be rebuilt # type "make clean" after changing this, so all files will be rebuilt
#MCU = at90usb162 # Teensy 1.0 #MCU = at90usb162 # Teensy 1.0
MCU = atmega32u4 # Teensy 2.0
#MCU = atmega32u4 # Teensy 2.0
#MCU = at90usb646 # Teensy++ 1.0 #MCU = at90usb646 # Teensy++ 1.0
#MCU = at90usb1286 # Teensy++ 2.0 #MCU = at90usb1286 # Teensy++ 2.0
#MCU = atmega32u2 # TMK converter
MCU = atmega32u2 # TMK converter




# Processor frequency. # Processor frequency.

+ 10
- 8
converter/next_usb/config.h View File



*/ */


#define VENDOR_ID 0xBCBC
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0xBCBC #define PRODUCT_ID 0xBCBC
#define DEVICE_VER 0x0500 #define DEVICE_VER 0x0500
#define MANUFACTURER t.m.k. #define MANUFACTURER t.m.k.
#define MATRIX_ROWS 12 // keycode bit: 3-0 #define MATRIX_ROWS 12 // keycode bit: 3-0
#define MATRIX_COLS 8 // keycode bit: 6-4 #define MATRIX_COLS 8 // keycode bit: 6-4


//#define DEBUG_ON_INIT 1
#define DEBUG_ON_INIT 1


//#define TEENSY_CONFIG 1 //#define TEENSY_CONFIG 1
#define PRO_MICRO_CONFIG 1
//#define TMK_CONFIG 1
//#define PRO_MICRO_CONFIG 1
#define TMK_CONFIG 1


// comment out if you don't want the keyboard's LEDs to flash upon initialization
#define NEXT_KBD_INIT_FLASH_LEDS
// comment out if you don't want the keyboard's LEDs to flash upon initialization or pressing shift
//#define NEXT_KBD_INIT_FLASH_LEDS
//#define NEXT_KBD_SHIFT_FLASH_LEDS


//============= Start of Arduino Pro Micro Configuration ============== //============= Start of Arduino Pro Micro Configuration ==============
#ifdef PRO_MICRO_CONFIG #ifdef PRO_MICRO_CONFIG


/* key combination for command */ /* key combination for command */
#define IS_COMMAND() ( \ #define IS_COMMAND() ( \
(keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))|| \
(keyboard_report->mods == (MOD_BIT(KC_RALT) | MOD_BIT(KC_RCTL))) \
(keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) || \
(keyboard_report->mods == (MOD_BIT(KC_RALT) | MOD_BIT(KC_RALT))) || \
(keyboard_report->mods == (MOD_BIT(KC_RGUI) | MOD_BIT(KC_RGUI))) \
) )