diff options
Diffstat (limited to 'keyboards/exclusive/e6v2')
| -rw-r--r-- | keyboards/exclusive/e6v2/le_bmc/config.h | 3 | ||||
| -rw-r--r-- | keyboards/exclusive/e6v2/le_bmc/le_bmc.c | 33 | ||||
| -rw-r--r-- | keyboards/exclusive/e6v2/le_bmc/rules.mk | 4 | ||||
| -rw-r--r-- | keyboards/exclusive/e6v2/oe_bmc/config.h | 3 | ||||
| -rw-r--r-- | keyboards/exclusive/e6v2/oe_bmc/oe_bmc.c | 33 | ||||
| -rw-r--r-- | keyboards/exclusive/e6v2/oe_bmc/rules.mk | 4 |
6 files changed, 30 insertions, 50 deletions
diff --git a/keyboards/exclusive/e6v2/le_bmc/config.h b/keyboards/exclusive/e6v2/le_bmc/config.h index d0b976c1e..ca680f502 100644 --- a/keyboards/exclusive/e6v2/le_bmc/config.h +++ b/keyboards/exclusive/e6v2/le_bmc/config.h | |||
| @@ -45,5 +45,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 45 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, C2, C3, C4, C5, D7 } | 45 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, C2, C3, C4, C5, D7 } |
| 46 | #define DIODE_DIRECTION COL2ROW | 46 | #define DIODE_DIRECTION COL2ROW |
| 47 | 47 | ||
| 48 | #define BACKLIGHT_PIN D4 | ||
| 49 | #define BACKLIGHT_LEVELS 3 | ||
| 50 | |||
| 48 | #define RGBLED_NUM 6 | 51 | #define RGBLED_NUM 6 |
| 49 | #define RGBLIGHT_ANIMATIONS | 52 | #define RGBLIGHT_ANIMATIONS |
diff --git a/keyboards/exclusive/e6v2/le_bmc/le_bmc.c b/keyboards/exclusive/e6v2/le_bmc/le_bmc.c index e3b81c81b..b09e58879 100644 --- a/keyboards/exclusive/e6v2/le_bmc/le_bmc.c +++ b/keyboards/exclusive/e6v2/le_bmc/le_bmc.c | |||
| @@ -16,32 +16,19 @@ | |||
| 16 | 16 | ||
| 17 | #include "le_bmc.h" | 17 | #include "le_bmc.h" |
| 18 | 18 | ||
| 19 | void backlight_init_ports(void) { | 19 | void keyboard_pre_init_kb(void) { |
| 20 | // initialize pins D0, D1, D4 and D6 as output | 20 | led_init_ports(); |
| 21 | setPinOutput(D0); | 21 | keyboard_pre_init_user(); |
| 22 | setPinOutput(D1); | 22 | } |
| 23 | setPinOutput(D4); | ||
| 24 | setPinOutput(D6); | ||
| 25 | 23 | ||
| 26 | // turn backlight LEDs on | 24 | void led_init_ports(void) { |
| 27 | writePinHigh(D0); | 25 | setPinOutput(D1); |
| 28 | writePinHigh(D1); | 26 | writePinHigh(D1); |
| 29 | writePinHigh(D4); | ||
| 30 | writePinHigh(D6); | ||
| 31 | } | 27 | } |
| 32 | 28 | ||
| 33 | void backlight_set(uint8_t level) { | 29 | bool led_update_kb(led_t led_state) { |
| 34 | if (level == 0) { | 30 | if (led_update_user(led_state)) { |
| 35 | // turn backlight LEDs off | 31 | writePin(D1, !led_state.caps_lock); |
| 36 | writePinLow(D0); | ||
| 37 | writePinLow(D1); | ||
| 38 | writePinLow(D4); | ||
| 39 | writePinLow(D6); | ||
| 40 | } else { | ||
| 41 | // turn backlight LEDs on | ||
| 42 | writePinHigh(D0); | ||
| 43 | writePinHigh(D1); | ||
| 44 | writePinHigh(D4); | ||
| 45 | writePinHigh(D6); | ||
| 46 | } | 32 | } |
| 33 | return true; | ||
| 47 | } | 34 | } |
diff --git a/keyboards/exclusive/e6v2/le_bmc/rules.mk b/keyboards/exclusive/e6v2/le_bmc/rules.mk index 106044ba7..ded651d3d 100644 --- a/keyboards/exclusive/e6v2/le_bmc/rules.mk +++ b/keyboards/exclusive/e6v2/le_bmc/rules.mk | |||
| @@ -17,13 +17,13 @@ BOOTLOADER = bootloadHID | |||
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 20 | CONSOLE_ENABLE = yes # Console for debug(+400) | 20 | CONSOLE_ENABLE = no # Console for debug(+400) |
| 21 | COMMAND_ENABLE = yes # Commands for debug and configuration | 21 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 25 | NKRO_ENABLE = no # USB Nkey Rollover | 25 | NKRO_ENABLE = no # USB Nkey Rollover |
| 26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | 26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default |
| 27 | WS2812_DRIVER = i2c | 27 | WS2812_DRIVER = i2c |
| 28 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | 28 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow |
| 29 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | 29 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) |
diff --git a/keyboards/exclusive/e6v2/oe_bmc/config.h b/keyboards/exclusive/e6v2/oe_bmc/config.h index fc7c91ca6..a6b56ba00 100644 --- a/keyboards/exclusive/e6v2/oe_bmc/config.h +++ b/keyboards/exclusive/e6v2/oe_bmc/config.h | |||
| @@ -45,5 +45,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 45 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, C2, C3, C4, C5, D7 } | 45 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, C2, C3, C4, C5, D7 } |
| 46 | #define DIODE_DIRECTION COL2ROW | 46 | #define DIODE_DIRECTION COL2ROW |
| 47 | 47 | ||
| 48 | #define BACKLIGHT_PIN D4 | ||
| 49 | #define BACKLIGHT_LEVELS 3 | ||
| 50 | |||
| 48 | #define RGBLED_NUM 6 | 51 | #define RGBLED_NUM 6 |
| 49 | #define RGBLIGHT_ANIMATIONS | 52 | #define RGBLIGHT_ANIMATIONS |
diff --git a/keyboards/exclusive/e6v2/oe_bmc/oe_bmc.c b/keyboards/exclusive/e6v2/oe_bmc/oe_bmc.c index 97d354653..a0a6c579b 100644 --- a/keyboards/exclusive/e6v2/oe_bmc/oe_bmc.c +++ b/keyboards/exclusive/e6v2/oe_bmc/oe_bmc.c | |||
| @@ -16,32 +16,19 @@ | |||
| 16 | 16 | ||
| 17 | #include "oe_bmc.h" | 17 | #include "oe_bmc.h" |
| 18 | 18 | ||
| 19 | void backlight_init_ports(void) { | 19 | void keyboard_pre_init_kb(void) { |
| 20 | // initialize pins D0, D1, D4 and D6 as output | 20 | led_init_ports(); |
| 21 | setPinOutput(D0); | 21 | keyboard_pre_init_user(); |
| 22 | setPinOutput(D1); | 22 | } |
| 23 | setPinOutput(D4); | ||
| 24 | setPinOutput(D6); | ||
| 25 | 23 | ||
| 26 | // turn backlight LEDs on | 24 | void led_init_ports(void) { |
| 27 | writePinHigh(D0); | 25 | setPinOutput(D1); |
| 28 | writePinHigh(D1); | 26 | writePinHigh(D1); |
| 29 | writePinHigh(D4); | ||
| 30 | writePinHigh(D6); | ||
| 31 | } | 27 | } |
| 32 | 28 | ||
| 33 | void backlight_set(uint8_t level) { | 29 | bool led_update_kb(led_t led_state) { |
| 34 | if (level == 0) { | 30 | if (led_update_user(led_state)) { |
| 35 | // turn backlight LEDs off | 31 | writePin(D1, !led_state.caps_lock); |
| 36 | writePinLow(D0); | ||
| 37 | writePinLow(D1); | ||
| 38 | writePinLow(D4); | ||
| 39 | writePinLow(D6); | ||
| 40 | } else { | ||
| 41 | // turn backlight LEDs on | ||
| 42 | writePinHigh(D0); | ||
| 43 | writePinHigh(D1); | ||
| 44 | writePinHigh(D4); | ||
| 45 | writePinHigh(D6); | ||
| 46 | } | 32 | } |
| 33 | return true; | ||
| 47 | } | 34 | } |
diff --git a/keyboards/exclusive/e6v2/oe_bmc/rules.mk b/keyboards/exclusive/e6v2/oe_bmc/rules.mk index 106044ba7..ded651d3d 100644 --- a/keyboards/exclusive/e6v2/oe_bmc/rules.mk +++ b/keyboards/exclusive/e6v2/oe_bmc/rules.mk | |||
| @@ -17,13 +17,13 @@ BOOTLOADER = bootloadHID | |||
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 20 | CONSOLE_ENABLE = yes # Console for debug(+400) | 20 | CONSOLE_ENABLE = no # Console for debug(+400) |
| 21 | COMMAND_ENABLE = yes # Commands for debug and configuration | 21 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 25 | NKRO_ENABLE = no # USB Nkey Rollover | 25 | NKRO_ENABLE = no # USB Nkey Rollover |
| 26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | 26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default |
| 27 | WS2812_DRIVER = i2c | 27 | WS2812_DRIVER = i2c |
| 28 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | 28 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow |
| 29 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | 29 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) |
