aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Markham <github@themarkhams.us>2018-03-07 16:06:41 -0600
committerJack Humbert <jack.humb@gmail.com>2018-03-07 17:06:41 -0500
commitbd1ad405bfb50a42f162b66b00037a7630474307 (patch)
tree959302dc2d8a0fa3ce004447c7dbe459ae32435b
parent03df19d3f6968f0dc3041b39b7ae8b85198aaa56 (diff)
downloadqmk_firmware-bd1ad405bfb50a42f162b66b00037a7630474307.tar.gz
qmk_firmware-bd1ad405bfb50a42f162b66b00037a7630474307.zip
Update Meira for revision 1.1 to enable backlighting by default (#2468)
* Update Meira for revision 1.1 to enable backlighting by default * Updates to fix other keymaps
-rw-r--r--keyboards/meira/config.h1
-rw-r--r--keyboards/meira/featherble/rules.mk1
-rw-r--r--keyboards/meira/keymaps/default/keymap.c5
-rw-r--r--keyboards/meira/keymaps/grahampheath/rules.mk2
-rwxr-xr-xkeyboards/meira/lighting.c2
-rw-r--r--keyboards/meira/meira.h19
-rw-r--r--keyboards/meira/promicro/rules.mk1
-rw-r--r--keyboards/meira/rules.mk7
8 files changed, 27 insertions, 11 deletions
diff --git a/keyboards/meira/config.h b/keyboards/meira/config.h
index 88d5a31ea..b9bdd426a 100644
--- a/keyboards/meira/config.h
+++ b/keyboards/meira/config.h
@@ -37,7 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
37 37
38#define BACKLIGHT_LEVELS 10 38#define BACKLIGHT_LEVELS 10
39#define BACKLIGHT_PWM_MAP {2, 4, 8, 16, 40, 55, 70, 128, 200, 255} 39#define BACKLIGHT_PWM_MAP {2, 4, 8, 16, 40, 55, 70, 128, 200, 255}
40#define BACKLIGHT_BREATHING
41 40
42#define RGB_DI_PIN D3 41#define RGB_DI_PIN D3
43#define RGBLIGHT_TIMER 42#define RGBLIGHT_TIMER
diff --git a/keyboards/meira/featherble/rules.mk b/keyboards/meira/featherble/rules.mk
index 391364322..3f32ba890 100644
--- a/keyboards/meira/featherble/rules.mk
+++ b/keyboards/meira/featherble/rules.mk
@@ -1,4 +1,3 @@
1BLUETOOTH_ENABLE = yes 1BLUETOOTH_ENABLE = yes
2BACKLIGHT_ENABLE = no
3F_CPU = 8000000 2F_CPU = 8000000
4 3
diff --git a/keyboards/meira/keymaps/default/keymap.c b/keyboards/meira/keymaps/default/keymap.c
index acde30afc..dd55859a5 100644
--- a/keyboards/meira/keymaps/default/keymap.c
+++ b/keyboards/meira/keymaps/default/keymap.c
@@ -14,7 +14,6 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16#include "meira.h" 16#include "meira.h"
17#include "issi.h"
18#include "lighting.h" 17#include "lighting.h"
19 18
20#ifdef RGBLIGHT_ENABLE 19#ifdef RGBLIGHT_ENABLE
@@ -277,10 +276,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
277 return false; 276 return false;
278 break; 277 break;
279 case BL_TOGG: 278 case BL_TOGG:
280#ifdef ISSI_ENABLE 279#ifdef BACKLIGHT_ENABLE
281 if (record->event.pressed) { 280 if (record->event.pressed) {
282 print("Enabling backlight\n"); 281 print("Enabling backlight\n");
283 issi_init(); 282 backlight_init_ports();
284 } 283 }
285#endif 284#endif
286 return false; 285 return false;
diff --git a/keyboards/meira/keymaps/grahampheath/rules.mk b/keyboards/meira/keymaps/grahampheath/rules.mk
index 8288530c9..b3b1980eb 100644
--- a/keyboards/meira/keymaps/grahampheath/rules.mk
+++ b/keyboards/meira/keymaps/grahampheath/rules.mk
@@ -1,3 +1,5 @@
1AUDIO_ENABLE = yes # Audio output on port C6 1AUDIO_ENABLE = yes # Audio output on port C6
2EXTRAFLAGS+=-flto # -4-7k 2EXTRAFLAGS+=-flto # -4-7k
3MOUSEKEY_ENABLE = no # Mouse keys(-47kb) 3MOUSEKEY_ENABLE = no # Mouse keys(-47kb)
4ISSI_ENABLE = no
5BACKLIGHT_ENABLE = no \ No newline at end of file
diff --git a/keyboards/meira/lighting.c b/keyboards/meira/lighting.c
index fee70a32b..37bb45aec 100755
--- a/keyboards/meira/lighting.c
+++ b/keyboards/meira/lighting.c
@@ -49,6 +49,8 @@ void backlight_set(uint8_t level){
49#endif 49#endif
50} 50}
51 51
52
53
52void set_backlight_by_keymap(uint8_t col, uint8_t row){ 54void set_backlight_by_keymap(uint8_t col, uint8_t row){
53// dprintf("LED: %02X, %d %d %d\n", lookup_value, matrix, led_col, led_row); 55// dprintf("LED: %02X, %d %d %d\n", lookup_value, matrix, led_col, led_row);
54// activateLED(matrix, led_col, led_row, 255); 56// activateLED(matrix, led_col, led_row, 255);
diff --git a/keyboards/meira/meira.h b/keyboards/meira/meira.h
index 29fdb84d5..35c5ba419 100644
--- a/keyboards/meira/meira.h
+++ b/keyboards/meira/meira.h
@@ -17,6 +17,7 @@
17#define MEIRA_H 17#define MEIRA_H
18 18
19#include "quantum.h" 19#include "quantum.h"
20#include "issi.h"
20 21
21void reset_keyboard_kb(void); 22void reset_keyboard_kb(void);
22 23
@@ -37,6 +38,22 @@ void reset_keyboard_kb(void);
37 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b } \ 38 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b } \
38} 39}
39 40
40#endif 41// Used to create a keymap using only KC_ prefixed keys
42#define KC_KEYMAP( \
43 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
44 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
45 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
46 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b \
47 ) \
48 KEYMAP( \
49 KC_##k00, KC_##k01, KC_##k02, KC_##k03, KC_##k04, KC_##k05, KC_##k06, KC_##k07, KC_##k08, KC_##k09, KC_##k0a, KC_##k0b, \
50 KC_##k10, KC_##k11, KC_##k12, KC_##k13, KC_##k14, KC_##k15, KC_##k16, KC_##k17, KC_##k18, KC_##k19, KC_##k1a, KC_##k1b, \
51 KC_##k20, KC_##k21, KC_##k22, KC_##k23, KC_##k24, KC_##k25, KC_##k26, KC_##k27, KC_##k28, KC_##k29, KC_##k2a, KC_##k2b, \
52 KC_##k30, KC_##k31, KC_##k32, KC_##k33, KC_##k34, KC_##k35, KC_##k36, KC_##k37, KC_##k38, KC_##k39, KC_##k3a, KC_##k3b \
53 )
41 54
42#define LAYOUT_ortho_4x12 KEYMAP 55#define LAYOUT_ortho_4x12 KEYMAP
56#define KC_LAYOUT_ortho_4x12 KC_KEYMAP
57
58#endif
59
diff --git a/keyboards/meira/promicro/rules.mk b/keyboards/meira/promicro/rules.mk
index 529e3147e..3c81f1b34 100644
--- a/keyboards/meira/promicro/rules.mk
+++ b/keyboards/meira/promicro/rules.mk
@@ -1,2 +1 @@
1BLUETOOTH_ENABLE = no BLUETOOTH_ENABLE = no
2BACKLIGHT_ENABLE = no
diff --git a/keyboards/meira/rules.mk b/keyboards/meira/rules.mk
index d4a1f921d..e898146ab 100644
--- a/keyboards/meira/rules.mk
+++ b/keyboards/meira/rules.mk
@@ -62,16 +62,15 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
62SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 62SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
63# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 63# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
64NKRO_ENABLE = no # USB Nkey Rollover 64NKRO_ENABLE = no # USB Nkey Rollover
65BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
66MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) 65MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
67UNICODE_ENABLE = no # Unicode 66UNICODE_ENABLE = no # Unicode
68BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 67BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
69AUDIO_ENABLE = no # Audio output on port C6 68AUDIO_ENABLE = no # Audio output on port C6
70RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. 69RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
71FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 70FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
72 71BACKLIGHT_CUSTOM_DRIVER = yes
73ISSI_ENABLE = no # If the I2C pullup resistors aren't install this must be disabled 72BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality, also set ISSI_ENABLE below for Miera
74#WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms 73ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
75 74
76CUSTOM_MATRIX = yes 75CUSTOM_MATRIX = yes
77 76