Onekey: migrate some stuff to data driven (#18502)
This commit is contained in:
		
							parent
							
								
									bad8c67189
								
							
						
					
					
						commit
						45b5ed5c6e
					
				
					 69 changed files with 259 additions and 335 deletions
				
			
		| 
						 | 
				
			
			@ -18,14 +18,9 @@
 | 
			
		|||
 | 
			
		||||
#include "config_common.h"
 | 
			
		||||
 | 
			
		||||
#define MATRIX_COL_PINS { F4 }
 | 
			
		||||
#define MATRIX_ROW_PINS { F5 }
 | 
			
		||||
 | 
			
		||||
#define BACKLIGHT_PIN B6
 | 
			
		||||
 | 
			
		||||
#define RGB_DI_PIN F6
 | 
			
		||||
 | 
			
		||||
#define ADC_PIN F6
 | 
			
		||||
 | 
			
		||||
#define RGB_CI_PIN F7
 | 
			
		||||
 | 
			
		||||
#define QMK_WAITING_TEST_BUSY_PIN F6
 | 
			
		||||
#define QMK_WAITING_TEST_YIELD_PIN F7
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,15 @@
 | 
			
		|||
{
 | 
			
		||||
    "keyboard_name": "Onekey Teensy 2.0++"
 | 
			
		||||
    "keyboard_name": "Onekey Teensy 2.0++",
 | 
			
		||||
    "processor": "at90usb1286",
 | 
			
		||||
    "bootloader": "halfkay",
 | 
			
		||||
    "matrix_pins": {
 | 
			
		||||
        "cols": ["F4"],
 | 
			
		||||
        "rows": ["F5"]
 | 
			
		||||
    },
 | 
			
		||||
    "backlight": {
 | 
			
		||||
        "pin": "B6"
 | 
			
		||||
    },
 | 
			
		||||
    "rgblight": {
 | 
			
		||||
        "pin": "F6"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +0,0 @@
 | 
			
		|||
# MCU name
 | 
			
		||||
MCU = at90usb1286
 | 
			
		||||
 | 
			
		||||
# Bootloader selection
 | 
			
		||||
BOOTLOADER = halfkay
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue