aboutsummaryrefslogtreecommitdiff
path: root/keyboards/nullbitsco
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/nullbitsco')
-rw-r--r--keyboards/nullbitsco/nibble/keymaps/default/keymap.c3
-rw-r--r--keyboards/nullbitsco/nibble/keymaps/iso/keymap.c3
-rw-r--r--keyboards/nullbitsco/nibble/keymaps/oled/keymap.c3
-rw-r--r--keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c3
-rw-r--r--keyboards/nullbitsco/nibble/keymaps/via/keymap.c3
-rw-r--r--keyboards/nullbitsco/scramble/keymaps/default/keymap.c3
-rw-r--r--keyboards/nullbitsco/scramble/keymaps/oled/keymap.c3
-rw-r--r--keyboards/nullbitsco/scramble/keymaps/via/keymap.c7
8 files changed, 18 insertions, 10 deletions
diff --git a/keyboards/nullbitsco/nibble/keymaps/default/keymap.c b/keyboards/nullbitsco/nibble/keymaps/default/keymap.c
index 787e8bd8f..beac1c55a 100644
--- a/keyboards/nullbitsco/nibble/keymaps/default/keymap.c
+++ b/keyboards/nullbitsco/nibble/keymaps/default/keymap.c
@@ -105,7 +105,7 @@ void change_RGB(bool clockwise) {
105 } 105 }
106} 106}
107 107
108void encoder_update_user(uint8_t index, bool clockwise) { 108bool encoder_update_user(uint8_t index, bool clockwise) {
109 if (layer_state_is(1)) { 109 if (layer_state_is(1)) {
110 //change RGB settings 110 //change RGB settings
111 change_RGB(clockwise); 111 change_RGB(clockwise);
@@ -117,6 +117,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
117 tap_code(KC_VOLD); 117 tap_code(KC_VOLD);
118 } 118 }
119 } 119 }
120 return true;
120} 121}
121 122
122void matrix_init_user(void) { 123void matrix_init_user(void) {
diff --git a/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c b/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c
index 214034ef8..270350ca0 100644
--- a/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c
+++ b/keyboards/nullbitsco/nibble/keymaps/iso/keymap.c
@@ -105,7 +105,7 @@ void change_RGB(bool clockwise) {
105 } 105 }
106} 106}
107 107
108void encoder_update_user(uint8_t index, bool clockwise) { 108bool encoder_update_user(uint8_t index, bool clockwise) {
109 if (layer_state_is(1)) { 109 if (layer_state_is(1)) {
110 //change RGB settings 110 //change RGB settings
111 change_RGB(clockwise); 111 change_RGB(clockwise);
@@ -117,6 +117,7 @@ void encoder_update_user(uint8_t index, bool clockwise) {
117 tap_code(KC_VOLD); 117 tap_code(KC_VOLD);
118 } 118 }
119 } 119 }
120 return true;
120} 121}
121 122
122void matrix_init_user(void) { 123void matrix_init_user(void) {
diff --git a/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c b/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c
index b9630b8e8..c9988848d 100644
--- a/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c
+++ b/keyboards/nullbitsco/nibble/keymaps/oled/keymap.c
@@ -122,12 +122,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
122} 122}
123 123
124 124
125void encoder_update_user(uint8_t index, bool clockwise) { 125bool encoder_update_user(uint8_t index, bool clockwise) {
126 if (clockwise) { 126 if (clockwise) {
127 tap_code(KC_VOLU); 127 tap_code(KC_VOLU);
128 } else { 128 } else {
129 tap_code(KC_VOLD); 129 tap_code(KC_VOLD);
130 } 130 }
131 return true;
131} 132}
132 133
133void matrix_init_user(void) { 134void matrix_init_user(void) {
diff --git a/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c b/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c
index 327cc7720..d1ddd3bcb 100644
--- a/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c
+++ b/keyboards/nullbitsco/nibble/keymaps/oled_bongocat/keymap.c
@@ -47,12 +47,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
47 47
48}; 48};
49 49
50void encoder_update_kb(uint8_t index, bool clockwise) { 50bool encoder_update_user(uint8_t index, bool clockwise) {
51 if (clockwise) { 51 if (clockwise) {
52 tap_code(KC_VOLU); 52 tap_code(KC_VOLU);
53 } else { 53 } else {
54 tap_code(KC_VOLD); 54 tap_code(KC_VOLD);
55 } 55 }
56 return true;
56} 57}
57 58
58#ifdef OLED_DRIVER_ENABLE 59#ifdef OLED_DRIVER_ENABLE
diff --git a/keyboards/nullbitsco/nibble/keymaps/via/keymap.c b/keyboards/nullbitsco/nibble/keymaps/via/keymap.c
index 5b2f3b4f2..67a53f241 100644
--- a/keyboards/nullbitsco/nibble/keymaps/via/keymap.c
+++ b/keyboards/nullbitsco/nibble/keymaps/via/keymap.c
@@ -148,13 +148,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
148return true; 148return true;
149} 149}
150 150
151void encoder_update_user(uint8_t index, bool clockwise) { 151bool encoder_update_user(uint8_t index, bool clockwise) {
152 // Encoder is mapped to volume functions by default 152 // Encoder is mapped to volume functions by default
153 if (clockwise) { 153 if (clockwise) {
154 tap_code(KC_VOLU); 154 tap_code(KC_VOLU);
155 } else { 155 } else {
156 tap_code(KC_VOLD); 156 tap_code(KC_VOLD);
157 } 157 }
158 return true;
158} 159}
159 160
160void matrix_init_user(void) { 161void matrix_init_user(void) {
diff --git a/keyboards/nullbitsco/scramble/keymaps/default/keymap.c b/keyboards/nullbitsco/scramble/keymaps/default/keymap.c
index 2ccffe3d8..b80214110 100644
--- a/keyboards/nullbitsco/scramble/keymaps/default/keymap.c
+++ b/keyboards/nullbitsco/scramble/keymaps/default/keymap.c
@@ -32,10 +32,11 @@ void matrix_init_user(void) {
32 set_scramble_LED(LED_OFF); 32 set_scramble_LED(LED_OFF);
33} 33}
34 34
35void encoder_update_user(uint8_t index, bool clockwise) { 35bool encoder_update_user(uint8_t index, bool clockwise) {
36 if (clockwise) { 36 if (clockwise) {
37 tap_code(KC_VOLU); 37 tap_code(KC_VOLU);
38 } else { 38 } else {
39 tap_code(KC_VOLD); 39 tap_code(KC_VOLD);
40 } 40 }
41 return true;
41} 42}
diff --git a/keyboards/nullbitsco/scramble/keymaps/oled/keymap.c b/keyboards/nullbitsco/scramble/keymaps/oled/keymap.c
index 7168ad9ec..2081872ac 100644
--- a/keyboards/nullbitsco/scramble/keymaps/oled/keymap.c
+++ b/keyboards/nullbitsco/scramble/keymaps/oled/keymap.c
@@ -76,10 +76,11 @@ void matrix_init_user(void) {
76 set_scramble_LED(LED_OFF); 76 set_scramble_LED(LED_OFF);
77} 77}
78 78
79void encoder_update_user(uint8_t index, bool clockwise) { 79bool encoder_update_user(uint8_t index, bool clockwise) {
80 if (clockwise) { 80 if (clockwise) {
81 tap_code(KC_VOLU); 81 tap_code(KC_VOLU);
82 } else { 82 } else {
83 tap_code(KC_VOLD); 83 tap_code(KC_VOLD);
84 } 84 }
85 return true;
85} 86}
diff --git a/keyboards/nullbitsco/scramble/keymaps/via/keymap.c b/keyboards/nullbitsco/scramble/keymaps/via/keymap.c
index 91a448cc1..d5b97855a 100644
--- a/keyboards/nullbitsco/scramble/keymaps/via/keymap.c
+++ b/keyboards/nullbitsco/scramble/keymaps/via/keymap.c
@@ -52,10 +52,11 @@ void matrix_init_user(void) {
52 set_scramble_LED(LED_OFF); 52 set_scramble_LED(LED_OFF);
53} 53}
54 54
55void encoder_update_user(uint8_t index, bool clockwise) { 55bool encoder_update_user(uint8_t index, bool clockwise) {
56 if (clockwise) { 56 if (clockwise) {
57 tap_code(KC_VOLU); 57 tap_code(KC_VOLU);
58 } else { 58 } else {
59 tap_code(KC_VOLD); 59 tap_code(KC_VOLD);
60 } 60 }
61} \ No newline at end of file 61 return true;
62}