aboutsummaryrefslogtreecommitdiff
path: root/layouts/community/ergodox/choromanski/visualizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/community/ergodox/choromanski/visualizer.c')
-rw-r--r--layouts/community/ergodox/choromanski/visualizer.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/layouts/community/ergodox/choromanski/visualizer.c b/layouts/community/ergodox/choromanski/visualizer.c
deleted file mode 100644
index e207c6682..000000000
--- a/layouts/community/ergodox/choromanski/visualizer.c
+++ /dev/null
@@ -1,62 +0,0 @@
1/*
2Copyright 2017 Fred Sundvik
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include "simple_visualizer.h"
19
20// This function should be implemented by the keymap visualizer
21// Don't change anything else than state->target_lcd_color and state->layer_text as that's the only thing
22// that the simple_visualizer assumes that you are updating
23// Also make sure that the buffer passed to state->layer_text remains valid until the previous animation is
24// stopped. This can be done by either double buffering it or by using constant strings
25static void get_visualizer_layer_and_color(visualizer_state_t* state) {
26
27 if (state->status.layer & 0x20) {
28 //GREEN
29 state->target_lcd_color = LCD_COLOR(85, 255, 128);
30 state->layer_text = "Gaming";
31 }
32 else if (state->status.layer & 0x10) {
33 //ORANGE
34 state->target_lcd_color = LCD_COLOR(28, 255, 230);
35 state->layer_text = "Numpad & Mouse";
36 }
37 else if (state->status.layer & 0x8) {
38 //YELLOW
39 state->target_lcd_color = LCD_COLOR(38, 255, 230);
40 state->layer_text = "Symbols";
41 }
42 else if (state->status.layer & 0x4) {
43 //RED
44 state->target_lcd_color = LCD_COLOR(0, 255, 95);
45 if (state->status.layer & 0x2){
46 state->layer_text = "Qwerty - Fn";
47 }else{
48 state->layer_text = "Colemak - Fn";
49 }
50 }
51 else if (state->status.layer & 0x2) {
52 //BLUE
53 state->target_lcd_color = LCD_COLOR(149, 255, 192);
54 state->layer_text = "Qwerty";
55 }
56 else {
57 //PURPLE
58 state->target_lcd_color = LCD_COLOR(200, 255, 192);
59 state->layer_text = "Colemak";
60 }
61}
62