diff options
| author | Cole Markham <github@themarkhams.us> | 2018-03-07 16:06:41 -0600 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-03-07 17:06:41 -0500 |
| commit | bd1ad405bfb50a42f162b66b00037a7630474307 (patch) | |
| tree | 959302dc2d8a0fa3ce004447c7dbe459ae32435b | |
| parent | 03df19d3f6968f0dc3041b39b7ae8b85198aaa56 (diff) | |
| download | qmk_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.h | 1 | ||||
| -rw-r--r-- | keyboards/meira/featherble/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/meira/keymaps/default/keymap.c | 5 | ||||
| -rw-r--r-- | keyboards/meira/keymaps/grahampheath/rules.mk | 2 | ||||
| -rwxr-xr-x | keyboards/meira/lighting.c | 2 | ||||
| -rw-r--r-- | keyboards/meira/meira.h | 19 | ||||
| -rw-r--r-- | keyboards/meira/promicro/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/meira/rules.mk | 7 |
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 @@ | |||
| 1 | BLUETOOTH_ENABLE = yes | 1 | BLUETOOTH_ENABLE = yes |
| 2 | BACKLIGHT_ENABLE = no | ||
| 3 | F_CPU = 8000000 | 2 | F_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 @@ | |||
| 1 | AUDIO_ENABLE = yes # Audio output on port C6 | 1 | AUDIO_ENABLE = yes # Audio output on port C6 |
| 2 | EXTRAFLAGS+=-flto # -4-7k | 2 | EXTRAFLAGS+=-flto # -4-7k |
| 3 | MOUSEKEY_ENABLE = no # Mouse keys(-47kb) | 3 | MOUSEKEY_ENABLE = no # Mouse keys(-47kb) |
| 4 | ISSI_ENABLE = no | ||
| 5 | BACKLIGHT_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 | |||
| 52 | void set_backlight_by_keymap(uint8_t col, uint8_t row){ | 54 | void 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 | ||
| 21 | void reset_keyboard_kb(void); | 22 | void 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 @@ | |||
| 1 | BLUETOOTH_ENABLE = no | BLUETOOTH_ENABLE = no | |
| 2 | BACKLIGHT_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 | |||
| 62 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 62 | SLEEP_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 |
| 64 | NKRO_ENABLE = no # USB Nkey Rollover | 64 | NKRO_ENABLE = no # USB Nkey Rollover |
| 65 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
| 66 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | 65 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) |
| 67 | UNICODE_ENABLE = no # Unicode | 66 | UNICODE_ENABLE = no # Unicode |
| 68 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 67 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 69 | AUDIO_ENABLE = no # Audio output on port C6 | 68 | AUDIO_ENABLE = no # Audio output on port C6 |
| 70 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | 69 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. |
| 71 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | 70 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches |
| 72 | 71 | BACKLIGHT_CUSTOM_DRIVER = yes | |
| 73 | ISSI_ENABLE = no # If the I2C pullup resistors aren't install this must be disabled | 72 | BACKLIGHT_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 | 73 | ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled |
| 75 | 74 | ||
| 76 | CUSTOM_MATRIX = yes | 75 | CUSTOM_MATRIX = yes |
| 77 | 76 | ||
