diff options
| author | jotix <47826561+jotix@users.noreply.github.com> | 2019-06-01 17:26:46 -0300 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-06-01 13:26:46 -0700 |
| commit | 016a258301e309973fcc9f4083b6b8591050cb6d (patch) | |
| tree | 7b4f7dad8041c9142fecdeabe3016c153829b03d | |
| parent | 9f5733b5951d3b8c59cd06ea89aa86784c025122 (diff) | |
| download | qmk_firmware-016a258301e309973fcc9f4083b6b8591050cb6d.tar.gz qmk_firmware-016a258301e309973fcc9f4083b6b8591050cb6d.zip | |
[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
| -rw-r--r-- | keyboards/handwired/jotanck/config.h | 8 | ||||
| -rw-r--r-- | keyboards/handwired/jotanck/jotanck.c | 6 | ||||
| -rw-r--r-- | keyboards/handwired/jotanck/keymaps/default/keymap.c | 2 | ||||
| -rw-r--r-- | keyboards/handwired/jotanck/readme.md | 8 | ||||
| -rw-r--r-- | keyboards/handwired/jotanck/rules.mk | 8 |
5 files changed, 17 insertions, 15 deletions
diff --git a/keyboards/handwired/jotanck/config.h b/keyboards/handwired/jotanck/config.h index 38b77586e..cbbd6ea96 100644 --- a/keyboards/handwired/jotanck/config.h +++ b/keyboards/handwired/jotanck/config.h | |||
| @@ -20,11 +20,9 @@ | |||
| 20 | #define UNUSED_PINS | 20 | #define UNUSED_PINS |
| 21 | 21 | ||
| 22 | /* leds */ | 22 | /* leds */ |
| 23 | #define QMK_LED B4 | 23 | #define JOTANCK_LEDS |
| 24 | #define BACKLIGHT_LEVELS 3 | 24 | #define JOTANCK_LED1 B5 |
| 25 | #define BACKLIGHT_PIN B5 | 25 | #define JOTANCK_LED2 B4 |
| 26 | #define BACKLIGHT_BREATHING | ||
| 27 | #define BREATHING_PERIOD 5 | ||
| 28 | 26 | ||
| 29 | /* COL2ROW or ROW2COL */ | 27 | /* COL2ROW or ROW2COL */ |
| 30 | #define DIODE_DIRECTION COL2ROW | 28 | #define DIODE_DIRECTION COL2ROW |
diff --git a/keyboards/handwired/jotanck/jotanck.c b/keyboards/handwired/jotanck/jotanck.c index 7744570b2..812781c3b 100644 --- a/keyboards/handwired/jotanck/jotanck.c +++ b/keyboards/handwired/jotanck/jotanck.c | |||
| @@ -1,6 +1,10 @@ | |||
| 1 | #include "jotanck.h" | 1 | #include "jotanck.h" |
| 2 | 2 | ||
| 3 | void matrix_init_kb(void) { | 3 | void matrix_init_kb(void) { |
| 4 | matrix_init_user(); | ||
| 5 | } | ||
| 4 | 6 | ||
| 5 | matrix_init_user(); | 7 | void keyboard_pre_init_user() { |
| 8 | setPinOutput(JOTANCK_LED1); | ||
| 9 | setPinOutput(JOTANCK_LED2); | ||
| 6 | } | 10 | } |
diff --git a/keyboards/handwired/jotanck/keymaps/default/keymap.c b/keyboards/handwired/jotanck/keymaps/default/keymap.c index 2e9f4a39f..3eb01a658 100644 --- a/keyboards/handwired/jotanck/keymaps/default/keymap.c +++ b/keyboards/handwired/jotanck/keymaps/default/keymap.c | |||
| @@ -78,7 +78,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 78 | [_ADJUST] = LAYOUT_ortho_4x12 ( | 78 | [_ADJUST] = LAYOUT_ortho_4x12 ( |
| 79 | _______, RESET, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, | 79 | _______, RESET, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, |
| 80 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 80 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 81 | _______, _______, _______, _______, _______, BL_STEP, BL_BRTG, _______, _______, _______, _______, _______, | 81 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 82 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | 82 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
| 83 | ), | 83 | ), |
| 84 | }; | 84 | }; |
diff --git a/keyboards/handwired/jotanck/readme.md b/keyboards/handwired/jotanck/readme.md index 28bbab86b..4cf211adc 100644 --- a/keyboards/handwired/jotanck/readme.md +++ b/keyboards/handwired/jotanck/readme.md | |||
| @@ -20,10 +20,10 @@ Hardware Availability: [Mercado Libre](https://articulo.mercadolibre.com.ar/MLA- | |||
| 20 | | Arduino pin | A3 | A2 | A1 | A0 | 15 | 14 | TX0 | RXI | 2 | 3 | 4 | 5 | | 20 | | Arduino pin | A3 | A2 | A1 | A0 | 15 | 14 | TX0 | RXI | 2 | 3 | 4 | 5 | |
| 21 | | QMK pin | F4 | F5 | F6 | F7 | B1 | B3 | D3 | D2 | D1 | D0 | D4 | C6 | | 21 | | QMK pin | F4 | F5 | F6 | F7 | B1 | B3 | D3 | D2 | D1 | D0 | D4 | C6 | |
| 22 | 22 | ||
| 23 | | | QMK led | Backlight | | 23 | | | LED1 | LED2 | |
| 24 | |-------------|-----------|-----------| | 24 | |-------------|------|------| |
| 25 | | Arduino pin | 8 | 9 | | 25 | | Arduino pin | 8 | 9 | |
| 26 | | QMK pin | B4 | B5 | | 26 | | QMK pin | B5 | B4 | |
| 27 | 27 | ||
| 28 | ### Compiling the Firmware | 28 | ### Compiling the Firmware |
| 29 | 29 | ||
diff --git a/keyboards/handwired/jotanck/rules.mk b/keyboards/handwired/jotanck/rules.mk index 6b39b7cc1..fa2881413 100644 --- a/keyboards/handwired/jotanck/rules.mk +++ b/keyboards/handwired/jotanck/rules.mk | |||
| @@ -50,10 +50,10 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | |||
| 50 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | 50 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
| 51 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 51 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 52 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 52 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 53 | CONSOLE_ENABLE = yes # Console for debug(+400) | 53 | CONSOLE_ENABLE = yes # Console for debug(+400) |
| 54 | COMMAND_ENABLE = no # Commands for debug and configuration | 54 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 55 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 55 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 56 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 56 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 57 | MIDI_ENABLE = no # MIDI controls | 57 | MIDI_ENABLE = no # MIDI controls |
| 58 | AUDIO_ENABLE = no # Audio output on port C6 | 58 | AUDIO_ENABLE = no # Audio output on port C6 |
| 59 | UNICODE_ENABLE = no # Unicode | 59 | UNICODE_ENABLE = no # Unicode |
