Migrate RGB Matrix config to info.json - H (#22861)

This commit is contained in:
Joel Challis 2024-01-08 02:15:50 +00:00 committed by GitHub
parent c7b59a96df
commit a45107e152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 413 additions and 681 deletions

View file

@ -41,17 +41,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define SPLIT_HAND_MATRIX_GRID D7,B2
#define SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
#ifdef RGB_MATRIX_ENABLE
#define RGB_MATRIX_LED_COUNT 50
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
# define RGB_MATRIX_SLEEP // turn off effects when suspended
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
// # define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
// # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
#endif
/* Custom font */
#define OLED_FONT_H "keyboards/helix/common/glcdfont.c"

View file

@ -12,7 +12,10 @@
"driver": "ws2812",
"sat_steps": 8,
"val_steps": 8,
"speed_steps": 10
"speed_steps": 10,
"max_brightness": 150,
"split_count": [25, 25],
"sleep": true
},
"dip_switch": {
"matrix_grid": [ [0,6], [1,6], [5,6], [6,6] ]

View file

@ -41,17 +41,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define SPLIT_HAND_MATRIX_GRID D7,B2
#define SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
#ifdef RGB_MATRIX_ENABLE
#define RGB_MATRIX_LED_COUNT 64
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
# define RGB_MATRIX_SLEEP // turn off effects when suspended
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
// # define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
// # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
#endif
/* Custom font */
#define OLED_FONT_H "keyboards/helix/common/glcdfont.c"

View file

@ -12,7 +12,7 @@
"driver": "ws2812",
"sat_steps": 8,
"val_steps": 8,
"speed_steps": 10
"speed_steps": 10,
"layout": [
{"matrix": [0, 5], "x": 80, "y": 0, "flags": 4},
{"matrix": [0, 4], "x": 64, "y": 0, "flags": 4},
@ -80,7 +80,8 @@
{"matrix": [9, 0], "x": 224, "y": 64, "flags": 4}
],
"max_brightness": 128,
"split_count": [32, 32]
"split_count": [32, 32],
"sleep": true
},
"dip_switch": {
"matrix_grid": [ [0,6], [1,6], [5,6], [6,6] ]