Move USB_MAX_POWER_CONSUMPTION to data driven (#20648)

This commit is contained in:
Ryan
2023-05-01 17:37:12 +10:00
committed by GitHub
parent 12d42cedd2
commit 2944e93870
99 changed files with 90 additions and 226 deletions

View File

@@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#define USB_MAX_POWER_CONSUMPTION 100
#define RGBLIGHT_DI_PIN E6
//# define RGBLIGHT_HUE_STEP 8
//# define RGBLIGHT_SAT_STEP 8

View File

@@ -5,7 +5,8 @@
"maintainer": "Work Louder",
"usb": {
"vid": "0x574C",
"pid": "0x1DF9"
"pid": "0x1DF9",
"max_power": 100
},
"rgb_matrix": {
"driver": "WS2812"

View File

@@ -4,12 +4,6 @@
#pragma once
/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/
#define USB_MAX_POWER_CONSUMPTION 100
#define RGB_MATRIX_LED_COUNT 12
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
#define RGB_MATRIX_DISABLE_KEYCODES

View File

@@ -49,7 +49,8 @@
"usb": {
"device_version": "1.0.0",
"pid": "0xE6E3",
"vid": "0x574C"
"vid": "0x574C",
"max_power": 100
},
"encoder": {
"rotary": [

View File

@@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#define USB_MAX_POWER_CONSUMPTION 100
#define RGBLIGHT_DI_PIN C7
#define RGBLED_NUM 6
//# define RGBLIGHT_HUE_STEP 8

View File

@@ -6,7 +6,8 @@
"usb": {
"vid": "0x574C",
"pid": "0xE6F0",
"device_version": "0.0.1"
"device_version": "0.0.1",
"max_power": 100
},
"rgb_matrix": {
"driver": "WS2812"

View File

@@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#define USB_MAX_POWER_CONSUMPTION 100
#define RGBLIGHT_DI_PIN D2
//# define RGBLIGHT_HUE_STEP 8
//# define RGBLIGHT_SAT_STEP 8

View File

@@ -5,7 +5,8 @@
"maintainer": "Work Louder",
"usb": {
"vid": "0x574C",
"pid": "0xDCD1"
"pid": "0xDCD1",
"max_power": 100
},
"rgb_matrix": {
"driver": "WS2812"