diff --git a/keyboard/kimera/Makefile b/keyboard/kimera/Makefile
index b2a308fe..bc6f5613 100644
--- a/keyboard/kimera/Makefile
+++ b/keyboard/kimera/Makefile
@@ -119,7 +119,7 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
ifdef VER
OPT_DEFS += -DKIMERA_$(REV)
else
- OPT_DEFS += -DKIMERA_V5
+ OPT_DEFS += -DKIMERA_CORE
endif
# Additional definitions from command line
@@ -131,7 +131,7 @@ endif
# comment out to disable the options.
#
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
-MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
+#MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400)
COMMAND_ENABLE = yes # Commands for debug and configuration
@@ -144,7 +144,7 @@ BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
KEYMAP_IN_EEPROM_ENABLE = yes # External keymap in eeprom
#KEYMAP_SECTION_ENABLE = yes # Fixed address keymap for keymap editor
SOFTPWM_LED_ENABLE = yes # Enable SoftPWM to drive backlight
-#FADING_LED_ENABLE = yes # Enable fading backlight
+FADING_LED_ENABLE = yes # Enable fading backlight
BREATHING_LED_ENABLE = yes # Enable breathing backlight
LEDMAP_ENABLE = yes # Enable LED mapping
LEDMAP_IN_EEPROM_ENABLE = yes # Read LED mapping from eeprom
diff --git a/keyboard/kimera/kimera.h b/keyboard/kimera/kimera.h
index 3f5ff9f9..387b5157 100644
--- a/keyboard/kimera/kimera.h
+++ b/keyboard/kimera/kimera.h
@@ -40,6 +40,8 @@ along with this program. If not, see .
`----------------'
*/
+#ifndef KIMERA_CORE
+
#define LED1_PORT PORTB
#define LED1_PIN PINB
#define LED1_DDR DDRB
@@ -61,6 +63,31 @@ along with this program. If not, see .
#define LED4_BIT PB6
#define LED4_OCR OCR1B
+#else
+
+#define LED1_PORT PORTB
+#define LED1_PIN PINB
+#define LED1_DDR DDRB
+#define LED1_BIT PB5
+
+#define LED2_PORT PORTB
+#define LED2_PIN PINB
+#define LED2_DDR DDRB
+#define LED2_BIT PB6
+
+#define LED3_PORT PORTC
+#define LED3_PIN PINC
+#define LED3_DDR DDRC
+#define LED3_BIT PC6
+
+#define LED4_PORT PORTC
+#define LED4_PIN PINC
+#define LED4_DDR DDRC
+#define LED4_BIT PC7
+#define LED4_OCR OCR4D
+
+#endif
+
/*
IC1 (PCA9555) IC2 (PCA9555)
,----------. ,----------.
@@ -104,8 +131,13 @@ enum {
EXP_COMM_CONFIG_0,
EXP_COMM_CONFIG_1
};
+#ifndef KIMERA_CORE
#define PX_TO_EXP(x) (((x)>>5<<1)+((((x)>>3)&1)^(((x)>>4)&1)))
#define PX_TO_PORT(x) (((x)>>4)&1)
+#else
+#define PX_TO_EXP(x) ((x)>>4)
+#define PX_TO_PORT(x) (((x)>>3)&1)
+#endif
#define PX_TO_PIN(x) ((x)&7)
#define PX_COUNT (EXP_PIN_PER_PORT * EXP_PORT_COUNT * EXP_COUNT)