aboutsummaryrefslogtreecommitdiff
path: root/users/cwebster2/cwebster2.c
diff options
context:
space:
mode:
authorNick Brassel <[email protected]>2023-11-28 16:39:48 +1100
committerNick Brassel <[email protected]>2023-11-28 16:40:47 +1100
commit0115951de12bd4c798a43a380651c34552552e85 (patch)
tree62999011ae782d93aa6dc9c889615db2a840cafc /users/cwebster2/cwebster2.c
parent0379d1f59e58cefa18cdb72ba1b77507d1108ae6 (diff)
parent4d99e0a23cff02f4c6e55e093b5de08a9be0df7c (diff)
downloadqmk_firmware-0115951de12bd4c798a43a380651c34552552e85.tar.gz
qmk_firmware-0115951de12bd4c798a43a380651c34552552e85.zip
`develop` -> `master`, 2023q4 edition0.23.0
Diffstat (limited to 'users/cwebster2/cwebster2.c')
-rw-r--r--users/cwebster2/cwebster2.c65
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 <[email protected]>
- *
- * 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;
-}