aboutsummaryrefslogtreecommitdiff
path: root/users/stanrc85/indicator_layers_sneakbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/stanrc85/indicator_layers_sneakbox.c')
-rw-r--r--users/stanrc85/indicator_layers_sneakbox.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/users/stanrc85/indicator_layers_sneakbox.c b/users/stanrc85/indicator_layers_sneakbox.c
new file mode 100644
index 000000000..8aa1a41e4
--- /dev/null
+++ b/users/stanrc85/indicator_layers_sneakbox.c
@@ -0,0 +1,28 @@
1 /* Copyright 2020 Stanrc85
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 "stanrc85.h"
18
19layer_state_t layer_state_set_user(layer_state_t state) {
20 writePin(INDICATOR_PIN_2, layer_state_cmp(state, _FN2_60) || layer_state_cmp(state, _DEFAULT));
21 writePin(INDICATOR_PIN_1, layer_state_cmp(state, _FN1_60) || layer_state_cmp(state, _DEFAULT));
22 return state;
23}
24
25bool led_update_user(led_t led_state) {
26 writePin(INDICATOR_PIN_0, led_state.caps_lock);
27 return false;
28} \ No newline at end of file