1
0
Fork 0

[Keymap] add 2 custom leds to handwired/jotanck (#6042)

* add JOTANCK_LED1&2

* set BACKLIGHT_ENABLE = no

* add 2 custom leds

* swap custom led pins 1&2

* readme update

* update default keymap
This commit is contained in:
jotix 2019-06-01 17:26:46 -03:00 committed by Drashna Jaelre
parent 9f5733b595
commit 016a258301
5 changed files with 18 additions and 16 deletions

View file

@ -20,11 +20,9 @@
#define UNUSED_PINS #define UNUSED_PINS
/* leds */ /* leds */
#define QMK_LED B4 #define JOTANCK_LEDS
#define BACKLIGHT_LEVELS 3 #define JOTANCK_LED1 B5
#define BACKLIGHT_PIN B5 #define JOTANCK_LED2 B4
#define BACKLIGHT_BREATHING
#define BREATHING_PERIOD 5
/* COL2ROW or ROW2COL */ /* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW #define DIODE_DIRECTION COL2ROW

View file

@ -1,6 +1,10 @@
#include "jotanck.h" #include "jotanck.h"
void matrix_init_kb(void) { void matrix_init_kb(void) {
matrix_init_user(); matrix_init_user();
} }
void keyboard_pre_init_user() {
setPinOutput(JOTANCK_LED1);
setPinOutput(JOTANCK_LED2);
}

View file

@ -78,7 +78,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_ADJUST] = LAYOUT_ortho_4x12 ( [_ADJUST] = LAYOUT_ortho_4x12 (
_______, RESET, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, RESET, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, BL_STEP, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
), ),
}; };

View file

@ -20,10 +20,10 @@ Hardware Availability: [Mercado Libre](https://articulo.mercadolibre.com.ar/MLA-
| Arduino pin | A3 | A2 | A1 | A0 | 15 | 14 | TX0 | RXI | 2 | 3 | 4 | 5 | | Arduino pin | A3 | A2 | A1 | A0 | 15 | 14 | TX0 | RXI | 2 | 3 | 4 | 5 |
| QMK pin | F4 | F5 | F6 | F7 | B1 | B3 | D3 | D2 | D1 | D0 | D4 | C6 | | QMK pin | F4 | F5 | F6 | F7 | B1 | B3 | D3 | D2 | D1 | D0 | D4 | C6 |
| | QMK led | Backlight | | | LED1 | LED2 |
|-------------|-----------|-----------| |-------------|------|------|
| Arduino pin | 8 | 9 | | Arduino pin | 8 | 9 |
| QMK pin | B4 | B5 | | QMK pin | B5 | B4 |
### Compiling the Firmware ### Compiling the Firmware

View file

@ -53,7 +53,7 @@ EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400) CONSOLE_ENABLE = yes # Console for debug(+400)
COMMAND_ENABLE = no # Commands for debug and configuration COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
MIDI_ENABLE = no # MIDI controls MIDI_ENABLE = no # MIDI controls
AUDIO_ENABLE = no # Audio output on port C6 AUDIO_ENABLE = no # Audio output on port C6
UNICODE_ENABLE = no # Unicode UNICODE_ENABLE = no # Unicode