@@ -17,10 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#define BACKLIGHT_LED_COUNT 2
-#undef BACKLIGHT_PIN
-#define BACKLIGHT_PINS { F6, F7 }
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
@@ -8,6 +8,9 @@
"pid": "0x0000",
"device_version": "0.0.1"
},
+ "backlight": {
+ "pins": ["F6", "F7"]
+ },
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {
@@ -20,4 +20,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Backlight */
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 6
-#define BACKLIGHT_PINS { F4, F5 } // Top Row, Bottom Row
"pid": "0x5350",
"device_version": "10.0.1"
+ "pins": ["F4", "F5"]
"indicators": {
"caps_lock": "B0",
"num_lock": "D5",
@@ -25,7 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PWM_DRIVER PWMD2
#define BACKLIGHT_PWM_CHANNEL 4
#define BACKLIGHT_PAL_MODE 2
-#define BACKLIGHT_ON_STATE 1
#define BACKLIGHT_LEVELS 10
#define BACKLIGHT_BREATHING TRUE
@@ -27,8 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PAL_MODE 1
-#define BREATHING_PERIOD 6
/* Underglow */
#define RGBLED_NUM 16
@@ -6,9 +6,6 @@
#define LOCKING_RESYNC_ENABLE
-#define BACKLIGHT_LED_COUNT 8
-#define BACKLIGHT_PINS { D1, D0, D4, C6, D7, E6, B4, B5 }
#define BACKLIGHT_LEVELS 8
// ws2812 options
@@ -7,6 +7,9 @@
"vid": "0xFEED",
"pid": "0x2171"
+ "pins": ["D1", "D0", "D4", "C6", "D7", "E6", "B4", "B5"]
@@ -32,8 +32,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_LEVELS 20
-#define BREATHING_PERIOD 5
-#define BACKLIGHT_ON_STATE 0
#define RGB_DI_PIN B15
#define RGBLED_NUM 34
@@ -4,6 +4,10 @@
"pid": "0x6584",
+ "on_state": 0,
+ "breathing_period": 5
"caps_lock": "A10"
@@ -32,7 +32,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -4,6 +4,9 @@
"pid": "0x6585",
"device_version": "0.0.2"
"caps_lock": "C8"
@@ -27,7 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -30,7 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_DEFAULT_LEVEL 10
-#define BREATHING_PERIOD 3
"pid": "0x454D",
+ "breathing_period": 3
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {
@@ -31,8 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLED_NUM 24
"pid": "0x5369",
"processor": "STM32F411",
"community_layouts": ["ortho_4x12"],
@@ -57,6 +57,5 @@
#define SLEEP_LED_GPT_DRIVER GPTD1
@@ -28,7 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3
@@ -24,6 +24,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 7
-#define BACKLIGHT_LIMIT_VAL 150
"pid": "0x5F10",
+ "max_brightness": 150
"layout_aliases": {
@@ -28,7 +28,6 @@
@@ -26,7 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PWM_CHANNEL 1
@@ -13,7 +13,6 @@
@@ -29,7 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS_PAD_A { B9 }
#define ENCODERS_PAD_B { B8 }
@@ -35,7 +35,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//LEDS A6, RGB B15
#define BACKLIGHT_LEVELS 24
// I2C config
#define I2C_DRIVER I2CD1
@@ -30,7 +30,6 @@ Copyright 2021 Nathan Spears
#define BACKLIGHT_PWM_DRIVER PWMD3
#define RGB_DI_PIN D2 // pin the DI on the ws2812 is hooked-up to
@@ -34,7 +34,6 @@
#define BACKLIGHT_PIN C4
#define RGB_DI_PIN C5 // pin the DI on the ws2812 is hooked-up to
@@ -29,7 +29,6 @@ Copyright 2022 Nathan Spears
#define BACKLIGHT_PIN D1
#define RGB_DI_PIN B1 // pin the DI on the ws2812 is hooked-up to
@@ -20,11 +20,8 @@
#define OLED_UPDATE_INTERVAL 33
#define BACKLIGHT_PIN B5
-#define BACKLIGHT_LIMIT_VAL 255
#define BACKLIGHT_LEVELS 17
#define OLED_DISABLE_TIMEOUT
@@ -9,6 +9,9 @@
"pid": "0xFAB5",
+ "on_state": 0
"bootloader": "qmk-dfu",
"diode_direction": "COL2ROW",
@@ -25,7 +25,6 @@
#ifdef BACKLIGHT_ENABLE
#define BACKLIGHT_PIN B11
#define BACKLIGHT_LEVELS 5
#endif
/* RGB Matrix */
"pid": "0x7342",
"processor": "STM32F103",
"bootloader": "stm32duino",
@@ -24,9 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
-#define BACKLIGHT_PINS { B1, B2, B3, E6 }
-#define BACKLIGHT_LED_COUNT 4
#define RGBLIGHT_EFFECT_BREATHING
"pid": "0x4F52",
+ "pins": ["B1", "B2", "B3", "E6"]
"bootmagic": {
"matrix": [4, 10]
@@ -31,7 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PWM_CHANNEL 2
#define BACKLIGHT_PWM_OUTPUT_FREQUENCY 1000 // Increases backlight PWM freq if compiled with an unmerged PR. Does no harm without it.
@@ -44,7 +44,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 2
#define BACKLIGHT_BREAHTING
"pid": "0x6060",
"caps_lock": "B7",
"on_state": 0
"bootloader": "atmel-dfu",
"community_layouts": ["60_ansi"],
@@ -38,7 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
* https://docs.qmk.fm/#/feature_backlight?id=timer-assisted-pwm-implementation
*/
#define RGB_DI_PIN B2
#ifdef RGB_DI_PIN
"pid": "0x1000",
"bootloader": "lufa-ms",
@@ -9,7 +9,6 @@
/* COL2ROW or ROW2COL */
"community_layouts": ["ortho_5x12"],
@@ -26,7 +26,6 @@
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLIGHT_EFFECT_SNAKE_LENGTH 4
-#define BREATHING_PERIOD 2
#define RGBLIGHT_LIMIT_VAL 255
#define RGBLIGHT_HUE_STEP 10
#define RGBLIGHT_SAT_STEP 17
"pid": "0x0007",
+ "breathing_period": 2
@@ -30,15 +30,6 @@
#define MATRIX_ROW_PINS { C0, B4, F3, F4, F5, F6 }
#define MATRIX_COL_PINS { C2, C1, E0, D4, D5, A4, A0, B2, B0, E7, E6, D6, B1, B3, D3, D2, B6, F7, F0, F1, F2 }
-/*Row 0, resistor R132, Pin A1
-*Row 1, R131, Pin B5
-*Row 2, R130, Pin E4
-*Row 3, R129, Pin A2
-*Row 4, R128, Pin E5
-*Row 5, R127, Pin A7
-#define BACKLIGHT_PINS { B5, E5, E4, A7, A1, A2 }
-#define BACKLIGHT_LEVELS 1*/
#define DIODE_DIRECTION ROW2COL
@@ -23,7 +23,6 @@
#define BACKLIGHT_PWM_DRIVER PWMD5
/* Encoder */
#define ENCODERS_PAD_A \
"pid": "0x1180",
@@ -34,7 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PIN C6
#define BACKLIGHT_BREATHING //not working with splits right now
/* ws2812 RGB LED */
@@ -81,7 +81,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -36,7 +36,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
@@ -28,4 +28,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PIN B1
"pid": "0x9879",
"processor": "atmega328p",
"bootloader": "usbasploader",
@@ -37,7 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PIN F7
#define RGB_DI_PIN F6
"pid": "0xB1E5",
"num_lock": "B2",
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Add backwards compatibility for existing keymaps
static inline void backlight_set_value(uint8_t index, uint8_t level) {
- static const uint8_t backlight_pins[BACKLIGHT_LED_COUNT] = BACKLIGHT_PINS;
+ static const uint8_t backlight_pins[] = BACKLIGHT_PINS;
if (level) {
setPinOutput(backlight_pins[index]);
} else {
@@ -30,8 +30,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_LIMIT_VAL 200
-#define BACKLIGHT_PINS { C2, C7, D5, D6, B0 }
-#define BACKLIGHT_LED_COUNT 5
"pid": "0x2328",
"device_version": "2.0.5"
+ "pins": ["C2", "C7", "D5", "D6", "B0"]
"matrix": [0, 1]
@@ -27,4 +27,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PIN B5 // Timer 1 on mega32u4
@@ -31,5 +31,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_PIN B7 // Timer 1 on mega32u4
#define RGB_DI_PIN E2
#define BACKLIGHT_PWM_CHANNEL 3
#define BACKLIGHT_PAL_MODE 6
@@ -28,8 +28,6 @@
# define BACKLIGHT_LEVELS 10
-# define BACKLIGHT_ON_STATE 1
-# define BACKLIGHT_LIMIT_VAL 255
@@ -22,7 +22,6 @@
#define BACKLIGHT_PIN B7
#define BACKLIGHT_CUSTOM_RESOLUTION 0x400
-#define BACKLIGHT_LIMIT_VAL 84
"pid": "0x1302",
+ "max_brightness": 84
@@ -22,4 +22,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_CAPS_LOCK
"pid": "0x3366",
@@ -33,7 +33,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/*Encoders */
#define ENCODERS_PAD_A { D0 }
@@ -23,8 +23,6 @@
#define ENCODERS_PAD_B { B0 }
#define ENCODER_RESOLUTION 4
"pid": "0xB44C",
"caps_lock": "B6"
@@ -21,9 +21,6 @@
#define MATRIX_ROW_PINS { B2, B3, B1, D4, B4, D1, E6, B0, F0, F1, F4, F5 }
#define MATRIX_COL_PINS { D0, D2, D3, D5, B5, D7, F6, F7, C7, B6 }
-/* LED Configuration */
-#define BACKLIGHT_PINS {D6}
"pid": "0x4A58",
"device_version": "0.2.0"
+ "pins": ["D6"]
"num_lock": "C6"