#
# make clean = Clean out built project files.
#
-# That's pretty much all you need. To compile, always go make clean,
+# That's pretty much all you need. To compile, always go make clean,
# followed by make.
#
# For advanced users only:
#----------------------------------------------------------------------------
# # project specific files
-SRC = twimaster.c \
- matrix.c
+SRC += matrix.c
# MCU name
MCU = atmega32u4
# Bootloader
# This definition is optional, and if your keyboard supports multiple bootloaders of
-# different sizes, comment this out, and the correct address will be loaded
+# different sizes, comment this out, and the correct address will be loaded
# automatically (+60). See bootloader.mk for all options.
BOOTLOADER = halfkay
CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
UNICODE_ENABLE = yes # Unicode
-ONEHAND_ENABLE = yes # Allow swapping hands of keyboard
+SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard
SLEEP_LED_ENABLE = no
API_SYSEX_ENABLE = no
RGBLIGHT_ENABLE = yes
+RGB_MATRIX_ENABLE = no # enable later
+DEBOUNCE_TYPE = eager_pr
-LAYOUTS = ergodox
\ No newline at end of file
+ifeq ($(strip $(RGB_MATRIX_ENABLE)), no)
+ SRC += i2c_master.c
+endif
+
+
+LAYOUTS = ergodox