diff options
Diffstat (limited to 'users/jonavin/jonavin.c')
-rw-r--r-- | users/jonavin/jonavin.c | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/users/jonavin/jonavin.c b/users/jonavin/jonavin.c index 6ecadc7b4..f53aa8664 100644 --- a/users/jonavin/jonavin.c +++ b/users/jonavin/jonavin.c | |||
@@ -160,6 +160,70 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
160 | } | 160 | } |
161 | } | 161 | } |
162 | } | 162 | } |
163 | |||
164 | #ifdef RGB_MATRIX_ENABLE | ||
165 | void encoder_action_rgb_speed(bool clockwise) { | ||
166 | if (clockwise) | ||
167 | rgb_matrix_increase_speed_noeeprom(); | ||
168 | else | ||
169 | rgb_matrix_decrease_speed_noeeprom(); | ||
170 | } | ||
171 | void encoder_action_rgb_hue(bool clockwise) { | ||
172 | if (clockwise) | ||
173 | rgb_matrix_increase_hue_noeeprom(); | ||
174 | else | ||
175 | rgb_matrix_decrease_hue_noeeprom(); | ||
176 | } | ||
177 | void encoder_action_rgb_saturation(bool clockwise) { | ||
178 | if (clockwise) | ||
179 | rgb_matrix_increase_sat_noeeprom(); | ||
180 | else | ||
181 | rgb_matrix_decrease_sat_noeeprom(); | ||
182 | } | ||
183 | void encoder_action_rgb_brightness(bool clockwise) { | ||
184 | if (clockwise) | ||
185 | rgb_matrix_increase_val_noeeprom(); | ||
186 | else | ||
187 | rgb_matrix_decrease_val_noeeprom(); | ||
188 | } | ||
189 | void encoder_action_rgb_mode(bool clockwise) { | ||
190 | if (clockwise) | ||
191 | rgb_matrix_step_noeeprom(); | ||
192 | else | ||
193 | rgb_matrix_step_reverse_noeeprom(); | ||
194 | } | ||
195 | #elif defined(RGBLIGHT_ENABLE) | ||
196 | void encoder_action_rgb_speed(bool clockwise) { | ||
197 | if (clockwise) | ||
198 | rgblight_increase_speed_noeeprom(); | ||
199 | else | ||
200 | rgblight_decrease_speed_noeeprom(); | ||
201 | } | ||
202 | void encoder_action_rgb_hue(bool clockwise) { | ||
203 | if (clockwise) | ||
204 | rgblight_increase_hue_noeeprom(); | ||
205 | else | ||
206 | rgblight_decrease_hue_noeeprom(); | ||
207 | } | ||
208 | void encoder_action_rgb_saturation(bool clockwise) { | ||
209 | if (clockwise) | ||
210 | rgblight_increase_sat_noeeprom(); | ||
211 | else | ||
212 | rgblight_decrease_sat_noeeprom(); | ||
213 | } | ||
214 | void encoder_action_rgb_brightness(bool clockwise) { | ||
215 | if (clockwise) | ||
216 | rgblight_increase_val_noeeprom(); | ||
217 | else | ||
218 | rgblight_decrease_val_noeeprom(); | ||
219 | } | ||
220 | void encoder_action_rgb_mode(bool clockwise) { | ||
221 | if (clockwise) | ||
222 | rgblight_step_noeeprom(); | ||
223 | else | ||
224 | rgblight_step_reverse_noeeprom(); | ||
225 | } | ||
226 | #endif // RGB_MATRIX_ENABLE || RGBLIGHT_ENABLE | ||
163 | #endif // ENCODER_ENABLE | 227 | #endif // ENCODER_ENABLE |
164 | 228 | ||
165 | #if defined(ENCODER_ENABLE) && defined(ENCODER_DEFAULTACTIONS_ENABLE) // Encoder Functionality | 229 | #if defined(ENCODER_ENABLE) && defined(ENCODER_DEFAULTACTIONS_ENABLE) // Encoder Functionality |