diff options
Diffstat (limited to 'keyboards/whitefox')
| -rw-r--r-- | keyboards/whitefox/gfxconf.h | 27 | ||||
| -rw-r--r-- | keyboards/whitefox/visualizer.c | 54 |
2 files changed, 0 insertions, 81 deletions
diff --git a/keyboards/whitefox/gfxconf.h b/keyboards/whitefox/gfxconf.h deleted file mode 100644 index ca338399d..000000000 --- a/keyboards/whitefox/gfxconf.h +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * This file has a different license to the rest of the uGFX system. | ||
| 3 | * You can copy, modify and distribute this file as you see fit. | ||
| 4 | * You do not need to publish your source modifications to this file. | ||
| 5 | * The only thing you are not permitted to do is to relicense it | ||
| 6 | * under a different license. | ||
| 7 | */ | ||
| 8 | |||
| 9 | /** | ||
| 10 | * Copy this file into your project directory and rename it as gfxconf.h | ||
| 11 | * Edit your copy to turn on the uGFX features you want to use. | ||
| 12 | * The values below are the defaults. | ||
| 13 | * | ||
| 14 | * Only remove the comments from lines where you want to change the | ||
| 15 | * default value. This allows definitions to be included from | ||
| 16 | * driver makefiles when required and provides the best future | ||
| 17 | * compatibility for your project. | ||
| 18 | * | ||
| 19 | * Please use spaces instead of tabs in this file. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef _GFXCONF_H | ||
| 23 | #define _GFXCONF_H | ||
| 24 | |||
| 25 | #include "common_gfxconf.h" | ||
| 26 | |||
| 27 | #endif /* _GFXCONF_H */ | ||
diff --git a/keyboards/whitefox/visualizer.c b/keyboards/whitefox/visualizer.c deleted file mode 100644 index 3846e9278..000000000 --- a/keyboards/whitefox/visualizer.c +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | /* Copyright 2017 Fred Sundvik | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include "visualizer.h" | ||
| 18 | #include "visualizer_keyframes.h" | ||
| 19 | #include "default_animations.h" | ||
| 20 | |||
| 21 | static bool initial_update = true; | ||
| 22 | |||
| 23 | // Feel free to modify the animations below, or even add new ones if needed | ||
| 24 | |||
| 25 | void initialize_user_visualizer(visualizer_state_t *state) { | ||
| 26 | // The brightness will be dynamically adjustable in the future | ||
| 27 | // But for now, change it here. | ||
| 28 | initial_update = true; | ||
| 29 | start_keyframe_animation(&default_startup_animation); | ||
| 30 | } | ||
| 31 | |||
| 32 | void update_user_visualizer_state(visualizer_state_t *state, visualizer_keyboard_status_t *prev_status) { | ||
| 33 | // Add more tests, change the colors and layer texts here | ||
| 34 | // Usually you want to check the high bits (higher layers first) | ||
| 35 | // because that's the order layers are processed for keypresses | ||
| 36 | // You can for check for example: | ||
| 37 | // state->status.layer | ||
| 38 | // state->status.default_layer | ||
| 39 | // state->status.leds (see led.h for available statuses) | ||
| 40 | |||
| 41 | if (initial_update) { | ||
| 42 | initial_update = false; | ||
| 43 | start_keyframe_animation(&led_test_animation); | ||
| 44 | } | ||
| 45 | } | ||
| 46 | |||
| 47 | void user_visualizer_suspend(visualizer_state_t *state) { | ||
| 48 | start_keyframe_animation(&default_suspend_animation); | ||
| 49 | } | ||
| 50 | |||
| 51 | void user_visualizer_resume(visualizer_state_t *state) { | ||
| 52 | initial_update = true; | ||
| 53 | start_keyframe_animation(&default_startup_animation); | ||
| 54 | } | ||
