diff options
author | jotix <47826561+jotix@users.noreply.github.com> | 2020-04-12 14:25:09 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 10:25:09 -0700 |
commit | 8a5c1e1859b22dff89d6f0200c258857e3f8c2a5 (patch) | |
tree | 97bc65c7cbe9c842a51c7fa138975a1cdccf2a5c | |
parent | 6265b783073e943b8f5b2f7118a2ec8df1fd2ebc (diff) | |
download | qmk_firmware-8a5c1e1859b22dff89d6f0200c258857e3f8c2a5.tar.gz qmk_firmware-8a5c1e1859b22dff89d6f0200c258857e3f8c2a5.zip |
[Keyboard] jotpad16 status leds (#8643)
* jotpad16 status leds
* jotpad16
* readme.md
-rw-r--r-- | keyboards/handwired/jotpad16/config.h | 9 | ||||
-rw-r--r-- | keyboards/handwired/jotpad16/jotpad16.c | 7 | ||||
-rw-r--r-- | keyboards/handwired/jotpad16/readme.md | 24 | ||||
-rw-r--r-- | keyboards/handwired/jotpad16/rules.mk | 2 |
4 files changed, 26 insertions, 16 deletions
diff --git a/keyboards/handwired/jotpad16/config.h b/keyboards/handwired/jotpad16/config.h index 075f9649c..dc6bb7959 100644 --- a/keyboards/handwired/jotpad16/config.h +++ b/keyboards/handwired/jotpad16/config.h | |||
@@ -16,13 +16,14 @@ | |||
16 | 16 | ||
17 | /* pro_micro pin-out */ | 17 | /* pro_micro pin-out */ |
18 | #define MATRIX_ROW_PINS { B6, B2, D2, D3 } | 18 | #define MATRIX_ROW_PINS { B6, B2, D2, D3 } |
19 | #define MATRIX_COL_PINS { B5, B4, B3, B1 } | 19 | #define MATRIX_COL_PINS { E6, D7, B3, B1 } |
20 | #define UNUSED_PINS | 20 | #define UNUSED_PINS |
21 | 21 | ||
22 | /* leds */ | 22 | /* leds */ |
23 | #define QMK_LED E6 | 23 | #define JOTPAD16_LEDS |
24 | #define BACKLIGHT_LEVELS 3 | 24 | #define JOTPAD16_LED1 B5 |
25 | #define BACKLIGHT_PIN D7 | 25 | #define JOTPAD16_LED2 B4 |
26 | #define QMK_LED B5 | ||
26 | 27 | ||
27 | /* COL2ROW or ROW2COL */ | 28 | /* COL2ROW or ROW2COL */ |
28 | #define DIODE_DIRECTION COL2ROW | 29 | #define DIODE_DIRECTION COL2ROW |
diff --git a/keyboards/handwired/jotpad16/jotpad16.c b/keyboards/handwired/jotpad16/jotpad16.c index 512234b91..2f112a610 100644 --- a/keyboards/handwired/jotpad16/jotpad16.c +++ b/keyboards/handwired/jotpad16/jotpad16.c | |||
@@ -4,3 +4,10 @@ void matrix_init_kb(void) { | |||
4 | 4 | ||
5 | matrix_init_user(); | 5 | matrix_init_user(); |
6 | } | 6 | } |
7 | |||
8 | void keyboard_pre_init_kb() { | ||
9 | setPinOutput(JOTPAD16_LED1); | ||
10 | setPinOutput(JOTPAD16_LED2); | ||
11 | |||
12 | keyboard_pre_init_user(); | ||
13 | } | ||
diff --git a/keyboards/handwired/jotpad16/readme.md b/keyboards/handwired/jotpad16/readme.md index 3d971a515..c8773cf18 100644 --- a/keyboards/handwired/jotpad16/readme.md +++ b/keyboards/handwired/jotpad16/readme.md | |||
@@ -1,7 +1,5 @@ | |||
1 | # JotPad16 | 1 | # JotPad16 |
2 | 2 | ||
3 |  | ||
4 | |||
5 | A ortholinear keypad (4x4) made by jotix. | 3 | A ortholinear keypad (4x4) made by jotix. |
6 | 4 | ||
7 | Keyboard Maintainer: [jotix](https://github.com/jotix) | 5 | Keyboard Maintainer: [jotix](https://github.com/jotix) |
@@ -16,13 +14,13 @@ Hardware Supported: Arduino Pro Micro | |||
16 | 14 | ||
17 | | columns | 0 | 1 | 2 | 3 | | 15 | | columns | 0 | 1 | 2 | 3 | |
18 | |-------------|----|----|----|----| | 16 | |-------------|----|----|----|----| |
19 | | arduino pin | 9 | 8 | 14 | 15 | | 17 | | arduino pin | 7 | 6 | 14 | 15 | |
20 | | qmk pin | B5 | B4 | B3 | C3 | | 18 | | qmk pin | E6 | D7 | B3 | C3 | |
21 | 19 | ||
22 | | | QMK led | Backlight | | 20 | | | LED1 | LED2 | |
23 | |-------------|-----------|-----------| | 21 | |-------------|------|------| |
24 | | Arduino pin | 7 | 6 | | 22 | | Arduino pin | 9 | 8 | |
25 | | qmk pin | E6 | D7 | | 23 | | QMK pin | B5 | B4 | |
26 | 24 | ||
27 | ### Compiling the Firmware | 25 | ### Compiling the Firmware |
28 | 26 | ||
@@ -32,8 +30,12 @@ Make example for this keyboard (after setting up your build environment): | |||
32 | 30 | ||
33 | ### The Default Keymap | 31 | ### The Default Keymap |
34 | 32 | ||
35 |  | 33 | | 7 | 8 | 9 | - | |
34 | |---|---|---|---| | ||
35 | | 4 | 5 | 6 | + | | ||
36 | |---|---|---|---| | ||
37 | | 1 | 2 | 3 |ent| | ||
38 | |---|---|---|---| | ||
39 | | 0 | . | / | * | | ||
36 | 40 | ||
37 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | 41 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). |
38 | |||
39 | |||
diff --git a/keyboards/handwired/jotpad16/rules.mk b/keyboards/handwired/jotpad16/rules.mk index 0c9370f1c..79c32c5c3 100644 --- a/keyboards/handwired/jotpad16/rules.mk +++ b/keyboards/handwired/jotpad16/rules.mk | |||
@@ -22,7 +22,7 @@ EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | |||
22 | CONSOLE_ENABLE = yes # Console for debug(+400) | 22 | CONSOLE_ENABLE = yes # Console for debug(+400) |
23 | COMMAND_ENABLE = no # Commands for debug and configuration | 23 | COMMAND_ENABLE = no # Commands for debug and configuration |
24 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 24 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
25 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 25 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
26 | MIDI_ENABLE = no # MIDI controls | 26 | MIDI_ENABLE = no # MIDI controls |
27 | AUDIO_ENABLE = no # Audio output on port C6 | 27 | AUDIO_ENABLE = no # Audio output on port C6 |
28 | UNICODE_ENABLE = no # Unicode | 28 | UNICODE_ENABLE = no # Unicode |