Move LED indicator config to data driven (#19800)
This commit is contained in:
		
							parent
							
								
									d784f78bd0
								
							
						
					
					
						commit
						f4ba17c4a0
					
				
					 979 changed files with 1935 additions and 2171 deletions
				
			
		| 
						 | 
				
			
			@ -27,8 +27,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
 | 
			
		||||
#define DIODE_DIRECTION COL2ROW
 | 
			
		||||
 | 
			
		||||
#define LED_CAPS_LOCK_PIN D1
 | 
			
		||||
 | 
			
		||||
#define BACKLIGHT_PIN       D4
 | 
			
		||||
#define BACKLIGHT_LEVELS    6
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,9 @@
 | 
			
		|||
    "pid": "0x4266",
 | 
			
		||||
    "device_version": "2.0.0"
 | 
			
		||||
  },
 | 
			
		||||
  "indicators": {
 | 
			
		||||
    "caps_lock": "D1"
 | 
			
		||||
  },
 | 
			
		||||
  "processor": "atmega32a",
 | 
			
		||||
  "bootloader": "bootloadhid",
 | 
			
		||||
  "layouts": {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,11 +12,6 @@
 | 
			
		|||
/* COL2ROW or ROW2COL */
 | 
			
		||||
#define DIODE_DIRECTION ROW2COL
 | 
			
		||||
 | 
			
		||||
#define LED_NUM_LOCK_PIN C6
 | 
			
		||||
#define LED_CAPS_LOCK_PIN C7
 | 
			
		||||
#define LED_SCROLL_LOCK_PIN B5
 | 
			
		||||
#define LED_PIN_ON_STATE 0
 | 
			
		||||
 | 
			
		||||
#define BACKLIGHT_PIN B6
 | 
			
		||||
#ifdef BACKLIGHT_PIN
 | 
			
		||||
#define BACKLIGHT_LEVELS 5
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,12 @@
 | 
			
		|||
        "pid": "0x4D96",
 | 
			
		||||
        "device_version": "0.0.1"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "caps_lock": "C7",
 | 
			
		||||
        "num_lock": "C6",
 | 
			
		||||
        "scroll_lock": "B5",
 | 
			
		||||
        "on_state": 0
 | 
			
		||||
    },
 | 
			
		||||
    "bootmagic": {
 | 
			
		||||
        "matrix": [5, 0]
 | 
			
		||||
    },
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -38,8 +38,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
/* COL2ROW, ROW2COL */
 | 
			
		||||
#define DIODE_DIRECTION COL2ROW
 | 
			
		||||
 | 
			
		||||
#define LED_NUM_LOCK_PIN D0
 | 
			
		||||
 | 
			
		||||
#define BACKLIGHT_PIN D4
 | 
			
		||||
#define BACKLIGHT_LEVELS 12
 | 
			
		||||
#define BACKLIGHT_BREATHING
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,6 +7,9 @@
 | 
			
		|||
        "pid": "0x5021",
 | 
			
		||||
        "device_version": "2.0.0"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "num_lock": "D0"
 | 
			
		||||
    },
 | 
			
		||||
    "processor": "atmega32a",
 | 
			
		||||
    "bootloader": "bootloadhid",
 | 
			
		||||
    "community_layouts": ["ortho_6x4", "numpad_6x4"],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,10 +27,6 @@
 | 
			
		|||
/* COL2ROW or ROW2COL */
 | 
			
		||||
#define DIODE_DIRECTION ROW2COL
 | 
			
		||||
 | 
			
		||||
/* LED indicator pins */
 | 
			
		||||
#define LED_NUM_LOCK_PIN    C6
 | 
			
		||||
#define LED_PIN_ON_STATE    0
 | 
			
		||||
 | 
			
		||||
#define BACKLIGHT_PIN B7
 | 
			
		||||
#ifdef BACKLIGHT_PIN
 | 
			
		||||
# define BACKLIGHT_LEVELS 31
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,6 +7,10 @@
 | 
			
		|||
        "pid": "0x5024",
 | 
			
		||||
        "device_version": "4.0.6"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "num_lock": "C6",
 | 
			
		||||
        "on_state": 0
 | 
			
		||||
    },
 | 
			
		||||
    "processor": "atmega32u4",
 | 
			
		||||
    "bootloader": "atmel-dfu",
 | 
			
		||||
    "community_layouts": ["ortho_6x4", "numpad_6x4"],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,11 +23,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
 | 
			
		||||
#define RIGHT_HALF
 | 
			
		||||
 | 
			
		||||
/* LED indicator lights */
 | 
			
		||||
#define LED_CAPS_LOCK_PIN D1
 | 
			
		||||
#define LED_NUM_LOCK_PIN D0
 | 
			
		||||
#define LED_SCROLL_LOCK_PIN D6
 | 
			
		||||
 | 
			
		||||
/* RGB underglow */
 | 
			
		||||
#define RGBLED_NUM 12
 | 
			
		||||
#define RGBLIGHT_HUE_STEP 8
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,11 @@
 | 
			
		|||
        "pid": "0x5364",
 | 
			
		||||
        "device_version": "2.0.0"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "caps_lock": "D1",
 | 
			
		||||
        "num_lock": "D0",
 | 
			
		||||
        "scroll_lock": "D6"
 | 
			
		||||
    },
 | 
			
		||||
    "processor": "atmega32a",
 | 
			
		||||
    "bootloader": "bootloadhid",
 | 
			
		||||
    "layouts": {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -39,9 +39,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#define BACKLIGHT_PIN B6
 | 
			
		||||
#define BACKLIGHT_LEVELS 5
 | 
			
		||||
 | 
			
		||||
#define LED_CAPS_LOCK_PIN C7
 | 
			
		||||
#define LED_PIN_ON_STATE 0
 | 
			
		||||
 | 
			
		||||
#define RGB_DI_PIN E2
 | 
			
		||||
#ifdef RGB_DI_PIN
 | 
			
		||||
#define RGBLED_NUM 14
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,10 @@
 | 
			
		|||
        "pid": "0x2975",
 | 
			
		||||
        "device_version": "0.0.1"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "caps_lock": "C7",
 | 
			
		||||
        "on_state": 0
 | 
			
		||||
    },
 | 
			
		||||
    "processor": "atmega32u4",
 | 
			
		||||
    "bootloader": "atmel-dfu",
 | 
			
		||||
    "layouts": {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,9 +37,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#define BACKLIGHT_PIN B6
 | 
			
		||||
#define BACKLIGHT_LEVELS 5
 | 
			
		||||
 | 
			
		||||
#define LED_CAPS_LOCK_PIN C7
 | 
			
		||||
#define LED_PIN_ON_STATE 0
 | 
			
		||||
 | 
			
		||||
#define RGB_DI_PIN E2
 | 
			
		||||
#ifdef RGB_DI_PIN
 | 
			
		||||
#define RGBLED_NUM 80
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,10 @@
 | 
			
		|||
        "pid": "0x4975",
 | 
			
		||||
        "device_version": "0.0.1"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "caps_lock": "C7",
 | 
			
		||||
        "on_state": 0
 | 
			
		||||
    },
 | 
			
		||||
    "processor": "atmega32u4",
 | 
			
		||||
    "bootloader": "atmel-dfu",
 | 
			
		||||
    "layouts": {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,8 +22,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
 | 
			
		||||
#define BACKLIGHT_LEVELS 12
 | 
			
		||||
 | 
			
		||||
#define LED_CAPS_LOCK_PIN D1
 | 
			
		||||
 | 
			
		||||
#define RGB_DI_PIN E2
 | 
			
		||||
#define RGBLED_NUM 16
 | 
			
		||||
#define RGBLIGHT_EFFECT_BREATHING
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,9 @@
 | 
			
		|||
    "usb": {
 | 
			
		||||
        "device_version": "1.0.0"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "caps_lock": "D1"
 | 
			
		||||
    },
 | 
			
		||||
    "processor": "atmega32a",
 | 
			
		||||
    "bootloader": "bootloadhid"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,9 @@
 | 
			
		|||
    "usb": {
 | 
			
		||||
        "device_version": "2.0.0"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "caps_lock": "D1"
 | 
			
		||||
    },
 | 
			
		||||
    "processor": "atmega32a",
 | 
			
		||||
    "bootloader": "bootloadhid"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,5 +7,3 @@
 | 
			
		|||
#define BACKLIGHT_PIN B6 // change the backlight pin that has since changed in Rev 3
 | 
			
		||||
#define DIODE_DIRECTION ROW2COL
 | 
			
		||||
#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 4
 | 
			
		||||
#undef LED_CAPS_LOCK_PIN // CapsLock pin changed in Rev 3
 | 
			
		||||
#define LED_CAPS_LOCK_PIN C7
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,6 +2,9 @@
 | 
			
		|||
    "usb": {
 | 
			
		||||
        "device_version": "3.0.0"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "caps_lock": "C7"
 | 
			
		||||
    },
 | 
			
		||||
    "processor": "atmega32u4",
 | 
			
		||||
    "bootloader": "atmel-dfu"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,10 +28,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
/* COL2ROW or ROW2COL */
 | 
			
		||||
#define DIODE_DIRECTION COL2ROW
 | 
			
		||||
 | 
			
		||||
#define LED_NUM_LOCK_PIN D0
 | 
			
		||||
#define LED_CAPS_LOCK_PIN D1
 | 
			
		||||
#define LED_PIN_ON_STATE 0
 | 
			
		||||
 | 
			
		||||
#define BACKLIGHT_PIN D4
 | 
			
		||||
#define BACKLIGHT_LEVELS 12
 | 
			
		||||
#define BACKLIGHT_BREATHING
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,11 @@
 | 
			
		|||
        "pid": "0x422D",
 | 
			
		||||
        "device_version": "2.0.0"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "caps_lock": "D1",
 | 
			
		||||
        "num_lock": "D0",
 | 
			
		||||
        "on_state": 0
 | 
			
		||||
    },
 | 
			
		||||
    "processor": "atmega32a",
 | 
			
		||||
    "bootloader": "bootloadhid",
 | 
			
		||||
    "layouts": {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue