Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

designedbygg: icl01: hello indicators #400

Open
wants to merge 1 commit into
base: sn32_develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keyboards/designedbygg/ironclad/icl01/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
#define SN32F2XX_PWM_OUTPUT_ACTIVE_LEVEL SN32F2XX_PWM_OUTPUT_ACTIVE_HIGH
#define SN32F2XX_RGB_OUTPUT_ACTIVE_LEVEL SN32F2XX_RGB_OUTPUT_ACTIVE_LOW
#define SN32F2XX_PWM_DIRECTION ROW2COL
#define RGB_MATRIX_LED_COUNT (105)
#define RGB_MATRIX_LED_COUNT (105 + 4)
45 changes: 45 additions & 0 deletions keyboards/designedbygg/ironclad/icl01/icl01.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/* Copyright 2024 Dimitris Mantzouranis <[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 "quantum.h"
#include "rgb_matrix.h"

#ifdef RGB_MATRIX_ENABLE
bool rgb_matrix_indicators_kb(void) {

if (host_keyboard_led_state().num_lock) {
rgb_matrix_set_color(16, RGB_RED);
} else {
rgb_matrix_set_color(16, RGB_OFF);
}
if (host_keyboard_led_state().caps_lock) {
rgb_matrix_set_color(17, RGB_RED);
} else {
rgb_matrix_set_color(17, RGB_OFF);
}
if (host_keyboard_led_state().scroll_lock) {
rgb_matrix_set_color(18, RGB_RED);
} else {
rgb_matrix_set_color(18, RGB_OFF);
}
if (keymap_config.no_gui) {
rgb_matrix_set_color(19, RGB_RED);
} else {
rgb_matrix_set_color(19, RGB_OFF);
}
return true;
}
#endif
23 changes: 5 additions & 18 deletions keyboards/designedbygg/ironclad/icl01/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@
"band_sat" : true,
"band_spiral_sat" : true,
"band_spiral_val" : true,
"band_val" : true,
"breathing" : true,
"cycle_all" : true,
"cycle_left_right" : true,
Expand All @@ -166,34 +165,18 @@
"cycle_pinwheel" : true,
"cycle_spiral" : true,
"cycle_up_down" : true,
"digital_rain" : true,
"dual_beacon" : true,
"gradient_left_right" : true,
"gradient_up_down" : true,
"hue_breathing" : true,
"hue_pendulum" : true,
"hue_wave" : true,
"jellybean_raindrops" : true,
"multisplash" : true,
"pixel_flow" : true,
"pixel_fractal" : false,
"pixel_rain" : true,
"rainbow_beacon" : true,
"rainbow_moving_chevron" : true,
"rainbow_pinwheels" : true,
"raindrops" : true,
"solid_multisplash" : true,
"solid_reactive" : true,
"solid_reactive_cross" : true,
"solid_reactive_multicross" : true,
"solid_reactive_multinexus" : true,
"solid_reactive_multiwide" : true,
"solid_reactive_nexus" : true,
"solid_reactive_simple" : true,
"solid_reactive_wide" : true,
"solid_splash" : true,
"splash" : true,
"typing_heatmap" : true,
"raindrops" : true
},
"driver": "sn32f2xx",
"layout": [
Expand All @@ -213,6 +196,10 @@
{"matrix": [0, 14],"flags": 1,"x":159, "y":0},
{"matrix": [0, 15],"flags": 1,"x":169, "y":0},
{"matrix": [0, 16],"flags": 1,"x":180, "y":0},
{"matrix": [0, 17],"flags": 8,"x":193, "y":0},
{"matrix": [0, 18],"flags": 8,"x":203, "y":0},
{"matrix": [0, 19],"flags": 8,"x":214, "y":0},
{"matrix": [0, 20],"flags": 8,"x":224, "y":0},

{"matrix": [1, 0],"flags": 1,"x":0, "y":15},
{"matrix": [1, 1],"flags": 4,"x":10, "y":15},
Expand Down