diff options
Diffstat (limited to 'layouts/community/ergodox/drashna_glow')
| -rw-r--r-- | layouts/community/ergodox/drashna_glow/README.md | 1 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna_glow/config.h | 11 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna_glow/keymap.c | 67 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna_glow/rules.mk | 9 |
4 files changed, 88 insertions, 0 deletions
diff --git a/layouts/community/ergodox/drashna_glow/README.md b/layouts/community/ergodox/drashna_glow/README.md new file mode 100644 index 000000000..7d625a258 --- /dev/null +++ b/layouts/community/ergodox/drashna_glow/README.md | |||
| @@ -0,0 +1 @@ | |||
| Note: This board will not flash if the "g_rgb_leds" const is not set to weak in the ergodox_ez.c file | |||
diff --git a/layouts/community/ergodox/drashna_glow/config.h b/layouts/community/ergodox/drashna_glow/config.h new file mode 100644 index 000000000..197acbc4a --- /dev/null +++ b/layouts/community/ergodox/drashna_glow/config.h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "../drashna/config.h" | ||
| 4 | |||
| 5 | #undef PRODUCT | ||
| 6 | #define PRODUCT DrashnaDox - Hacked ErgoDox EZ Glow | ||
| 7 | |||
| 8 | #undef DEBOUNCE | ||
| 9 | #define DEBOUNCE 5 | ||
| 10 | |||
| 11 | // #define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) | ||
diff --git a/layouts/community/ergodox/drashna_glow/keymap.c b/layouts/community/ergodox/drashna_glow/keymap.c new file mode 100644 index 000000000..f2fb66545 --- /dev/null +++ b/layouts/community/ergodox/drashna_glow/keymap.c | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | /* placeholder file */ | ||
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | |||
| 4 | const rgb_led g_rgb_leds[DRIVER_LED_TOTAL] = { | ||
| 5 | |||
| 6 | /*{row | col << 4} | ||
| 7 | | {x=0..224, y=0..64} | ||
| 8 | | | modifier | ||
| 9 | | | | */ | ||
| 10 | {{0|(0<<4)}, {24.9*5, 16*0}, 0}, // LED 1 on right | ||
| 11 | {{0|(1<<4)}, {24.9*6, 16*0}, 0}, // LED 2 | ||
| 12 | {{0|(2<<4)}, {24.9*7, 16*0}, 0}, // LED 3 | ||
| 13 | {{0|(3<<4)}, {24.9*8, 16*0}, 0}, // LED 4 | ||
| 14 | {{0|(4<<4)}, {24.9*9, 16*0}, 0}, // LED 5 | ||
| 15 | |||
| 16 | {{1|(5<<4)}, {24.9*5, 16*1}, 0}, // LED 6 | ||
| 17 | {{1|(6<<4)}, {24.9*6, 16*1}, 0}, // LED 7 | ||
| 18 | {{1|(7<<4)}, {24.9*7, 16*1}, 0}, // LED 8 | ||
| 19 | {{1|(8<<4)}, {24.9*8, 16*1}, 0}, // LED 9 | ||
| 20 | {{1|(9<<4)}, {24.9*9, 16*1}, 0}, // LED 10 | ||
| 21 | |||
| 22 | {{2|(5<<4)}, {24.9*5, 16*2}, 0}, // LED 11 | ||
| 23 | {{2|(6<<4)}, {24.9*6, 16*2}, 0}, // LED 12 | ||
| 24 | {{2|(7<<4)}, {24.9*7, 16*2}, 0}, // LED 13 | ||
| 25 | {{2|(8<<4)}, {24.9*8, 16*2}, 0}, // LED 14 | ||
| 26 | {{2|(9<<4)}, {24.9*9, 16*2}, 0}, // LED 15 | ||
| 27 | |||
| 28 | {{3|(5<<4)}, {24.9*5, 16*2}, 0}, // LED 16 | ||
| 29 | {{3|(6<<4)}, {24.9*6, 16*2}, 0}, // LED 17 | ||
| 30 | {{3|(7<<4)}, {24.9*7, 16*2}, 0}, // LED 18 | ||
| 31 | {{3|(8<<4)}, {24.9*8, 16*2}, 0}, // LED 19 | ||
| 32 | {{3|(9<<4)}, {24.9*9, 16*2}, 0}, // LED 20 | ||
| 33 | |||
| 34 | {{4|(6<<4)}, {24.9*6, 16*2}, 1}, // LED 21 | ||
| 35 | {{4|(7<<4)}, {24.9*7, 16*2}, 1}, // LED 22 | ||
| 36 | {{4|(8<<4)}, {24.9*8, 16*2}, 1}, // LED 23 | ||
| 37 | {{4|(9<<4)}, {24.9*9, 16*2}, 1}, // LED 24 | ||
| 38 | |||
| 39 | {{0|(0<<4)}, {24.9*4, 16*0}, 0}, // LED 1 on left | ||
| 40 | {{0|(1<<4)}, {24.9*3, 16*0}, 0}, // LED 2 | ||
| 41 | {{0|(2<<4)}, {24.9*2, 16*0}, 0}, // LED 3 | ||
| 42 | {{0|(3<<4)}, {24.9*1, 16*0}, 0}, // LED 4 | ||
| 43 | {{0|(4<<4)}, {24.9*0, 16*0}, 0}, // LED 5 | ||
| 44 | |||
| 45 | {{1|(5<<4)}, {24.9*4, 16*1}, 0}, // LED 6 | ||
| 46 | {{1|(6<<4)}, {24.9*3, 16*1}, 0}, // LED 7 | ||
| 47 | {{1|(7<<4)}, {24.9*2, 16*1}, 0}, // LED 8 | ||
| 48 | {{1|(8<<4)}, {24.9*1, 16*1}, 0}, // LED 9 | ||
| 49 | {{1|(9<<4)}, {24.9*0, 16*1}, 0}, // LED 10 | ||
| 50 | |||
| 51 | {{2|(5<<4)}, {24.9*4, 16*2}, 0}, // LED 11 | ||
| 52 | {{2|(6<<4)}, {24.9*3, 16*2}, 0}, // LED 12 | ||
| 53 | {{2|(7<<4)}, {24.9*2, 16*2}, 0}, // LED 13 | ||
| 54 | {{2|(8<<4)}, {24.9*1, 16*2}, 0}, // LED 14 | ||
| 55 | {{2|(9<<4)}, {24.9*0, 16*2}, 0}, // LED 15 | ||
| 56 | |||
| 57 | {{3|(5<<4)}, {24.9*4, 16*2}, 0}, // LED 16 | ||
| 58 | {{3|(6<<4)}, {24.9*3, 16*2}, 0}, // LED 17 | ||
| 59 | {{3|(7<<4)}, {24.9*2, 16*2}, 0}, // LED 18 | ||
| 60 | {{3|(8<<4)}, {24.9*1, 16*2}, 0}, // LED 19 | ||
| 61 | {{3|(9<<4)}, {24.9*0, 16*2}, 0}, // LED 20 | ||
| 62 | |||
| 63 | {{4|(6<<4)}, {24.9*3, 16*2}, 1}, // LED 21 | ||
| 64 | {{4|(7<<4)}, {24.9*2, 16*2}, 1}, // LED 22 | ||
| 65 | {{4|(8<<4)}, {24.9*1, 16*2}, 1}, // LED 23 | ||
| 66 | {{4|(9<<4)}, {24.9*0, 16*2}, 1}, // LED 24 | ||
| 67 | }; | ||
diff --git a/layouts/community/ergodox/drashna_glow/rules.mk b/layouts/community/ergodox/drashna_glow/rules.mk new file mode 100644 index 000000000..3b317224a --- /dev/null +++ b/layouts/community/ergodox/drashna_glow/rules.mk | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | USER_NAME := drashna | ||
| 2 | SRC += ../drashna/keymap.c | ||
| 3 | |||
| 4 | -include $$(LAYOUT_KEYMAP_PATH)/../drashna/rules.mk | ||
| 5 | |||
| 6 | ifneq (,$(findstring ergodox_ez,$(KEYBOARD))) | ||
| 7 | RGBLIGHT_ENABLE = no | ||
| 8 | RGB_MATRIX_ENABLE = yes | ||
| 9 | endif | ||
