aboutsummaryrefslogtreecommitdiff
path: root/keyboards/exclusive/e6v2
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/exclusive/e6v2')
-rw-r--r--keyboards/exclusive/e6v2/le_bmc/config.h3
-rw-r--r--keyboards/exclusive/e6v2/le_bmc/le_bmc.c33
-rw-r--r--keyboards/exclusive/e6v2/le_bmc/rules.mk4
-rw-r--r--keyboards/exclusive/e6v2/oe_bmc/config.h3
-rw-r--r--keyboards/exclusive/e6v2/oe_bmc/oe_bmc.c33
-rw-r--r--keyboards/exclusive/e6v2/oe_bmc/rules.mk4
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
19void backlight_init_ports(void) { 19void 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 24void 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
33void backlight_set(uint8_t level) { 29bool 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
17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
18MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 18MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
19EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 19EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
20CONSOLE_ENABLE = yes # Console for debug(+400) 20CONSOLE_ENABLE = no # Console for debug(+400)
21COMMAND_ENABLE = yes # Commands for debug and configuration 21COMMAND_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
23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 23SLEEP_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
25NKRO_ENABLE = no # USB Nkey Rollover 25NKRO_ENABLE = no # USB Nkey Rollover
26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default 26BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
27WS2812_DRIVER = i2c 27WS2812_DRIVER = i2c
28RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow 28RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
29MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) 29MIDI_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
19void backlight_init_ports(void) { 19void 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 24void 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
33void backlight_set(uint8_t level) { 29bool 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
17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) 17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
18MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 18MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
19EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 19EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
20CONSOLE_ENABLE = yes # Console for debug(+400) 20CONSOLE_ENABLE = no # Console for debug(+400)
21COMMAND_ENABLE = yes # Commands for debug and configuration 21COMMAND_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
23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 23SLEEP_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
25NKRO_ENABLE = no # USB Nkey Rollover 25NKRO_ENABLE = no # USB Nkey Rollover
26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default 26BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
27WS2812_DRIVER = i2c 27WS2812_DRIVER = i2c
28RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow 28RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
29MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) 29MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)