diff options
| author | Erez Zukerman <bulk@ezuk.org> | 2018-11-19 20:01:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-19 20:01:22 -0500 |
| commit | 385de70e4d81670ea12526722b78de9521465da9 (patch) | |
| tree | 55abb005c646cf9951051e9a7a80ab4b7a9299e4 | |
| parent | f03fd950009fdfd9fa0dcb6d343fe22c6ab386cb (diff) | |
| parent | 9e0f68a6522a86625f2586003959fd12b18dd86b (diff) | |
| download | qmk_firmware-385de70e4d81670ea12526722b78de9521465da9.tar.gz qmk_firmware-385de70e4d81670ea12526722b78de9521465da9.zip | |
Merge pull request #4442 from drashna/ergodox_ez_glow_configurable
Make Ergodox EZ Glow's rgb matrix user configurable
| -rw-r--r-- | keyboards/ergodox_ez/ergodox_ez.c | 1 | ||||
| -rw-r--r-- | keyboards/ergodox_ez/keymaps/default/keymap.c | 2 | ||||
| -rw-r--r-- | keyboards/ergodox_ez/keymaps/default_glow/keymap.c | 1 | ||||
| -rw-r--r-- | keyboards/ergodox_ez/keymaps/default_glow/rules.mk | 4 | ||||
| -rw-r--r-- | keyboards/ergodox_ez/rules.mk | 8 |
5 files changed, 12 insertions, 4 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c index 61f910711..3b2c94350 100644 --- a/keyboards/ergodox_ez/ergodox_ez.c +++ b/keyboards/ergodox_ez/ergodox_ez.c | |||
| @@ -269,6 +269,7 @@ const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { | |||
| 269 | }; | 269 | }; |
| 270 | 270 | ||
| 271 | 271 | ||
| 272 | __attribute__ ((weak)) | ||
| 272 | const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = { | 273 | const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = { |
| 273 | 274 | ||
| 274 | /*{row | col << 4} | 275 | /*{row | col << 4} |
diff --git a/keyboards/ergodox_ez/keymaps/default/keymap.c b/keyboards/ergodox_ez/keymaps/default/keymap.c index ef70decd5..49de60773 100644 --- a/keyboards/ergodox_ez/keymaps/default/keymap.c +++ b/keyboards/ergodox_ez/keymaps/default/keymap.c | |||
| @@ -1,6 +1,4 @@ | |||
| 1 | #include QMK_KEYBOARD_H | 1 | #include QMK_KEYBOARD_H |
| 2 | #include "debug.h" | ||
| 3 | #include "action_layer.h" | ||
| 4 | #include "version.h" | 2 | #include "version.h" |
| 5 | 3 | ||
| 6 | #define BASE 0 // default layer | 4 | #define BASE 0 // default layer |
diff --git a/keyboards/ergodox_ez/keymaps/default_glow/keymap.c b/keyboards/ergodox_ez/keymaps/default_glow/keymap.c new file mode 100644 index 000000000..526c36402 --- /dev/null +++ b/keyboards/ergodox_ez/keymaps/default_glow/keymap.c | |||
| @@ -0,0 +1 @@ | |||
| // Placeholder. See ../default/keymap.c for details | |||
diff --git a/keyboards/ergodox_ez/keymaps/default_glow/rules.mk b/keyboards/ergodox_ez/keymaps/default_glow/rules.mk new file mode 100644 index 000000000..360c3c51b --- /dev/null +++ b/keyboards/ergodox_ez/keymaps/default_glow/rules.mk | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | RGBLIGHT_ENABLE = no | ||
| 2 | RGB_MATRIX_ENABLE = yes # enable later | ||
| 3 | |||
| 4 | SRC += ../default/keymap.c | ||
diff --git a/keyboards/ergodox_ez/rules.mk b/keyboards/ergodox_ez/rules.mk index ef2aefbb9..446ba3e21 100644 --- a/keyboards/ergodox_ez/rules.mk +++ b/keyboards/ergodox_ez/rules.mk | |||
| @@ -15,8 +15,7 @@ | |||
| 15 | #---------------------------------------------------------------------------- | 15 | #---------------------------------------------------------------------------- |
| 16 | 16 | ||
| 17 | # # project specific files | 17 | # # project specific files |
| 18 | SRC = matrix.c \ | 18 | SRC += matrix.c |
| 19 | i2c_master.c | ||
| 20 | 19 | ||
| 21 | # MCU name | 20 | # MCU name |
| 22 | MCU = atmega32u4 | 21 | MCU = atmega32u4 |
| @@ -85,4 +84,9 @@ API_SYSEX_ENABLE = no | |||
| 85 | RGBLIGHT_ENABLE = yes | 84 | RGBLIGHT_ENABLE = yes |
| 86 | RGB_MATRIX_ENABLE = no # enable later | 85 | RGB_MATRIX_ENABLE = no # enable later |
| 87 | 86 | ||
| 87 | ifeq ($(strip $(RGB_MATRIX_ENABLE)), no) | ||
| 88 | SRC += i2c_master.c | ||
| 89 | endif | ||
| 90 | |||
| 91 | |||
| 88 | LAYOUTS = ergodox | 92 | LAYOUTS = ergodox |
