diff options
author | vin <git@vineetk.net> | 2023-10-15 19:46:33 -0400 |
---|---|---|
committer | vin <git@vineetk.net> | 2023-10-15 19:46:33 -0400 |
commit | 7ed78a843d4a90ae8adc69bf3c3dbf573a379f75 (patch) | |
tree | 420f8e7829b46bf43b5dbafc46f0a72f644e9588 /users/cwebster2/cwebster2.c | |
parent | 392a85e1f6fefd549cd52945ab1447a2d6901484 (diff) |
remove userspace declarations
Diffstat (limited to 'users/cwebster2/cwebster2.c')
-rw-r--r-- | users/cwebster2/cwebster2.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/users/cwebster2/cwebster2.c b/users/cwebster2/cwebster2.c deleted file mode 100644 index cfebc12c60..0000000000 --- a/users/cwebster2/cwebster2.c +++ /dev/null @@ -1,65 +0,0 @@ -/* Copyright 2020 Casey Webster <casey@e1337.dev> - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#include "cwebster2.h" - -userspace_config_t userspace_config; - -__attribute__((weak)) void matrix_scan_keymap(void) {} - -void matrix_scan_user(void) { - static bool has_ran_yet; - if (!has_ran_yet) { - has_ran_yet = true; - startup_user(); - } - - matrix_scan_keymap(); -} - -void keyboard_post_init_rgb(void) { -#if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_STARTUP_ANIMATION) - /*if (userspace_config.rgb_layer_change) { rgblight_enable_noeeprom(); }*/ - /*if (rgblight_config.enable) {*/ - /*layer_state_set_user(layer_state);*/ - /*uint16_t old_hue = rgblight_config.hue;*/ - uint16_t old_hue = 170; - rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); - for (uint16_t i = 255; i > 0; i--) { - rgblight_sethsv_noeeprom( ( i + old_hue) % 255, 255, 255); - matrix_scan(); - wait_ms(10); - } - /*}*/ -#endif - /*layer_state_set_user(layer_state);*/ -} - -__attribute__((weak)) void eeconfig_init_keymap(void) {} - -void eeconfig_init_user(void) { - userspace_config.raw = 0; - userspace_config.rgb_layer_change = true; - eeconfig_update_user(userspace_config.raw); - eeconfig_init_keymap(); - keyboard_init(); -} - -bool hasAllBitsInMask(uint8_t value, uint8_t mask) { - value &= 0xF; - mask &= 0xF; - - return (value & mask) == mask; -} |