aboutsummaryrefslogtreecommitdiff
path: root/keyboards/latinpad
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/latinpad')
-rw-r--r--keyboards/latinpad/keymaps/default/keymap.c7
-rw-r--r--keyboards/latinpad/keymaps/via/keymap.c7
2 files changed, 8 insertions, 6 deletions
diff --git a/keyboards/latinpad/keymaps/default/keymap.c b/keyboards/latinpad/keymaps/default/keymap.c
index 8edc66f0a..fe0741423 100644
--- a/keyboards/latinpad/keymaps/default/keymap.c
+++ b/keyboards/latinpad/keymaps/default/keymap.c
@@ -1,7 +1,7 @@
1 /* Keymap _0: (Base Layer) Default Layer 1 /* Keymap _0: (Base Layer) Default Layer
2 2
3 * .-----------. 3 * .-----------.
4 * |PGUP | PGDN| 4 * |PGUP | PGDN|
5 * |-----------------------. 5 * |-----------------------.
6 * | 7 | 8 | 9 | MO1 | 6 * | 7 | 8 | 9 | MO1 |
7 * |-----|-----|-----|-----| 7 * |-----|-----|-----|-----|
@@ -15,7 +15,7 @@
15 /* Keymap _1: (Second Layer) second Layer 15 /* Keymap _1: (Second Layer) second Layer
16 16
17 * .---------------. 17 * .---------------.
18 * |NUMLOCK|Calc. | 18 * |NUMLOCK|Calc. |
19 * |--------------------------------. 19 * |--------------------------------.
20 * |RGB_TOG|RGB_MOD|RGB_M_K|RGB_M_X | 20 * |RGB_TOG|RGB_MOD|RGB_M_K|RGB_M_X |
21 * |-------|-------|-------|--------| 21 * |-------|-------|-------|--------|
@@ -52,7 +52,7 @@ static void render_logo(void) {
52void oled_task_user(void) { render_logo(); } 52void oled_task_user(void) { render_logo(); }
53#endif 53#endif
54 54
55void encoder_update_user(uint8_t index, bool clockwise) { 55bool encoder_update_user(uint8_t index, bool clockwise) {
56 if (index == 0) { 56 if (index == 0) {
57 if (clockwise) { 57 if (clockwise) {
58 tap_code(KC_AUDIO_VOL_UP); 58 tap_code(KC_AUDIO_VOL_UP);
@@ -66,5 +66,6 @@ void encoder_update_user(uint8_t index, bool clockwise) {
66 tap_code(KC_BRIGHTNESS_DOWN); 66 tap_code(KC_BRIGHTNESS_DOWN);
67 } 67 }
68 } 68 }
69 return true;
69} 70}
70void matrix_init_user(void) { render_logo(); } 71void matrix_init_user(void) { render_logo(); }
diff --git a/keyboards/latinpad/keymaps/via/keymap.c b/keyboards/latinpad/keymaps/via/keymap.c
index c48dd88a8..c196cd485 100644
--- a/keyboards/latinpad/keymaps/via/keymap.c
+++ b/keyboards/latinpad/keymaps/via/keymap.c
@@ -1,6 +1,6 @@
1/* Keymap _0: (Base Layer) Default Layer 1/* Keymap _0: (Base Layer) Default Layer
2 * .-----------. 2 * .-----------.
3 * |PGUP | PGDN| 3 * |PGUP | PGDN|
4 * |-----------------------. 4 * |-----------------------.
5 * | 7 | 8 | 9 | MO1 | 5 * | 7 | 8 | 9 | MO1 |
6 * |-----|-----|-----|-----| 6 * |-----|-----|-----|-----|
@@ -13,7 +13,7 @@
13 */ 13 */
14 /* Keymap _1: (Second Layer) second Layer 14 /* Keymap _1: (Second Layer) second Layer
15 * .---------------. 15 * .---------------.
16 * |NUMLOCK|Calc. | 16 * |NUMLOCK|Calc. |
17 * |--------------------------------. 17 * |--------------------------------.
18 * |RGB_TOG|RGB_MOD|RGB_M_K|RGB_M_X | 18 * |RGB_TOG|RGB_MOD|RGB_M_K|RGB_M_X |
19 * |-------|-------|-------|--------| 19 * |-------|-------|-------|--------|
@@ -50,7 +50,7 @@ static void render_logo(void) {
50void oled_task_user(void) { render_logo(); } 50void oled_task_user(void) { render_logo(); }
51#endif 51#endif
52 52
53void encoder_update_user(uint8_t index, bool clockwise) { 53bool encoder_update_user(uint8_t index, bool clockwise) {
54 if (index == 0) { 54 if (index == 0) {
55 if (clockwise) { 55 if (clockwise) {
56 tap_code(KC_AUDIO_VOL_UP); 56 tap_code(KC_AUDIO_VOL_UP);
@@ -64,5 +64,6 @@ void encoder_update_user(uint8_t index, bool clockwise) {
64 tap_code(KC_BRIGHTNESS_DOWN); 64 tap_code(KC_BRIGHTNESS_DOWN);
65 } 65 }
66 } 66 }
67 return true;
67} 68}
68void matrix_init_user(void) { render_logo(); } 69void matrix_init_user(void) { render_logo(); }