aboutsummaryrefslogtreecommitdiff
path: root/keyboards/duck/orion/v3/v3.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/duck/orion/v3/v3.c')
-rw-r--r--keyboards/duck/orion/v3/v3.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/keyboards/duck/orion/v3/v3.c b/keyboards/duck/orion/v3/v3.c
new file mode 100644
index 000000000..2e8f85a11
--- /dev/null
+++ b/keyboards/duck/orion/v3/v3.c
@@ -0,0 +1,39 @@
1/* Copyright 2019 MechMerlin <[email protected]>
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#include "v3.h"
17#include "indicator_leds.h"
18
19// Alphas PB1
20// Navigation Cluster: PB2
21// Number Row, Mods: PB3
22// Function Row: PE6
23
24// Other than using RGB or LED matrix, QMK cannot turn on specific zones
25// of backlight LEDs. Unfortunately, Duck PCBs do not follow this design
26// and instead use multiple pins connected to each of these zones. QMK is
27// only able to control them ALL with the current default mechanisms.
28
29// Locking indicator LEDs
30// The Duck Orion V3 has 3 locking indicator LEDs and are located to the right
31// of the Escape key.
32bool led_update_kb(led_t led_state) {
33 if(led_update_user(led_state)) {
34 writePin(B0, !led_state.caps_lock);
35 writePin(B4, !led_state.num_lock);
36 writePin(D7, !led_state.scroll_lock);
37 }
38 return true;
39}