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
				
			
		| 
						 | 
				
			
			@ -54,7 +54,6 @@
 | 
			
		|||
#define RGBLIGHT_VAL_STEP 8
 | 
			
		||||
 | 
			
		||||
//pin setting
 | 
			
		||||
#define LED_CAPS_LOCK_PIN E2
 | 
			
		||||
#define LED_POWER_PIN       D5
 | 
			
		||||
#define CHG_EN_PIN          E6
 | 
			
		||||
#define BATTERY_LEVEL_PIN   F0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,9 @@
 | 
			
		|||
        "pid": "0x474E",
 | 
			
		||||
        "device_version": "0.0.1"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "caps_lock": "E2"
 | 
			
		||||
    },
 | 
			
		||||
    "processor": "atmega32u4",
 | 
			
		||||
    "bootloader": "atmel-dfu",
 | 
			
		||||
    "community_layouts": ["60_hhkb"],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,10 +30,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
/* COL2ROW, ROW2COL */
 | 
			
		||||
#define DIODE_DIRECTION COL2ROW
 | 
			
		||||
 | 
			
		||||
/* Status LEDs */
 | 
			
		||||
#define LED_CAPS_LOCK_PIN B6
 | 
			
		||||
#define LED_SCROLL_LOCK_PIN B5
 | 
			
		||||
 | 
			
		||||
/* RGB */
 | 
			
		||||
#define RGB_DI_PIN B8
 | 
			
		||||
#define RGBLIGHT_EFFECT_BREATHING
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,10 @@
 | 
			
		|||
        "pid": "0x0369",
 | 
			
		||||
        "device_version": "0.0.1"
 | 
			
		||||
    },
 | 
			
		||||
    "indicators": {
 | 
			
		||||
        "caps_lock": "B6",
 | 
			
		||||
        "scroll_lock": "B5"
 | 
			
		||||
    },
 | 
			
		||||
    "layouts": {
 | 
			
		||||
        "LAYOUT_all": {
 | 
			
		||||
            "layout": [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,7 +50,3 @@
 | 
			
		|||
#define RGBLIGHT_HUE_STEP   8
 | 
			
		||||
#define RGBLIGHT_SAT_STEP   8
 | 
			
		||||
#define RGBLIGHT_VAL_STEP   8
 | 
			
		||||
 | 
			
		||||
// led pins
 | 
			
		||||
#define LED_CAPS_LOCK_PIN   E6
 | 
			
		||||
#define LED_SCROLL_LOCK_PIN D2
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,10 @@
 | 
			
		|||
    "pid": "0x454D",
 | 
			
		||||
    "device_version": "0.0.1"
 | 
			
		||||
  },
 | 
			
		||||
  "indicators": {
 | 
			
		||||
    "caps_lock": "E6",
 | 
			
		||||
    "scroll_lock": "D2"
 | 
			
		||||
  },
 | 
			
		||||
  "processor": "atmega32u4",
 | 
			
		||||
  "bootloader": "atmel-dfu",
 | 
			
		||||
  "layouts": {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue