Add audio driver to keyboard.json schema (#23616)

This commit is contained in:
Joel Challis 2024-04-26 05:41:22 +01:00 committed by GitHub
parent 42f61611e8
commit d333a25868
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
39 changed files with 59 additions and 22 deletions

View File

@ -11,6 +11,7 @@
// invalid: Default `false`. Set to `true` to generate errors when a value exists
// replace_with: use with a key marked deprecated or invalid to designate a replacement
"AUDIO_DRIVER": {"info_key": "audio.driver"},
"BACKLIGHT_DRIVER": {"info_key": "backlight.driver"},
"BLUETOOTH_DRIVER": {"info_key": "bluetooth.driver"},
"BOARD": {"info_key": "board"},

View File

@ -133,6 +133,10 @@
"clicky": {"type": "boolean"}
}
},
"driver": {
"type": "string",
"enum": ["dac_additive", "dac_basic", "pwm_software", "pwm_hardware"]
},
"macro_beep": {"type": "boolean"},
"pins": {"$ref": "qmk.definitions.v1#/mcu_pin_array"},
"power_control": {

View File

@ -118,6 +118,8 @@ Configures the [Audio](feature_audio.md) feature.
* `clicky`
* The default audio clicky enabled state.
* Default: `true`
* `driver`
* The driver to use. Must be one of `dac_additive`, `dac_basic`, `pwm_software`, `pwm_hardware`.
* `macro_beep`
* Play a short beep for `\a` (ASCII `BEL`) characters in Send String macros.
* Default: `false`

View File

@ -19,6 +19,7 @@
"oled": true
},
"audio": {
"driver": "pwm_hardware",
"power_control": {
"pin": "GP14"
}

View File

@ -1,2 +1 @@
AUDIO_DRIVER = pwm_hardware
OLED_TRANSPORT = spi

View File

@ -17,6 +17,9 @@
"mousekey": true,
"rgb_matrix": true
},
"audio": {
"driver": "pwm_hardware"
},
"matrix_pins": {
"cols": ["GP8", "GP9", "GP10", "GP11", "GP12", "GP13", "GP14", "GP15", "GP16"],
"rows": ["GP22", "GP21", "GP20", "GP19", "GP18", "GP17"]

View File

@ -1,2 +1 @@
SERIAL_DRIVER = vendor
AUDIO_DRIVER = pwm_hardware

View File

@ -10,6 +10,9 @@
"cols": ["GP0", "GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11"],
"rows": ["GP12", "GP13", "GP16", "GP17"]
},
"audio": {
"driver": "pwm_hardware"
},
"ws2812": {
"driver": "vendor",
"pin": "GP21"

View File

@ -1,2 +1 @@
AUDIO_DRIVER = pwm_hardware
QUANTUM_PAINTER_DRIVERS += st7735_spi

View File

@ -10,6 +10,9 @@
"cols": ["GP0", "GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11"],
"rows": ["GP12", "GP13", "GP16", "GP17", "GP18"]
},
"audio": {
"driver": "pwm_hardware"
},
"ws2812": {
"driver": "vendor",
"pin": "GP21"

View File

@ -1,2 +1 @@
AUDIO_DRIVER = pwm_hardware
QUANTUM_PAINTER_DRIVERS += st7735_spi

View File

@ -32,6 +32,9 @@
"pid": "0x7563",
"vid": "0x4273"
},
"audio": {
"driver": "pwm_hardware"
},
"ws2812": {
"driver": "vendor",
"pin": "GP29"

View File

@ -1,3 +1,2 @@
SERIAL_DRIVER = vendor
AUDIO_DRIVER = pwm_hardware
POINTING_DEVICE_DRIVER = analog_joystick

View File

@ -18,6 +18,9 @@
"nkro": true,
"rgb_matrix": true
},
"audio": {
"driver": "pwm_hardware"
},
"matrix_pins": {
"cols": ["B0", "A1", "A2", "A3", "A6", "B10"],
"rows": ["A5", "A4"]

View File

@ -1 +0,0 @@
AUDIO_DRIVER = pwm_hardware

View File

@ -17,6 +17,9 @@
"encoder": true,
"audio": true
},
"audio": {
"driver": "pwm_hardware"
},
"matrix_pins": {
"cols": ["B0", "A1", "A2", "A3", "A6", "B6", "B10"],
"rows": ["C13", "C14", "C15", "B1", "A7", "A5"]

View File

@ -1 +0,0 @@
AUDIO_DRIVER = pwm_hardware

View File

@ -51,6 +51,9 @@
"twinkle": true
}
},
"audio": {
"driver": "pwm_hardware"
},
"ws2812": {
"driver": "pwm",
"pin": "A10"

View File

@ -1,5 +1,3 @@
AUDIO_DRIVER = pwm_hardware
# project specific files
SRC += matrix.c

View File

@ -9,6 +9,9 @@
"rows": ["A15", "B3", "B4", "B5", "B7"]
},
"diode_direction": "COL2ROW",
"audio": {
"driver": "pwm_hardware"
},
"ws2812": {
"driver": "pwm"
},

View File

@ -1 +0,0 @@
AUDIO_DRIVER = pwm_hardware

View File

@ -12,6 +12,9 @@
"led_count": 20,
"split_count": [10, 10]
},
"audio": {
"driver": "dac_additive"
},
"ws2812": {
"pin": "A6",
"driver": "pwm"

View File

@ -1,4 +1,3 @@
# KEYBOARD_SHARED_EP = yes
SERIAL_DRIVER = usart
AUDIO_DRIVER = dac_additive

View File

@ -15,6 +15,9 @@
"build": {
"debounce_type": "asym_eager_defer_pk"
},
"audio": {
"driver": "pwm_hardware"
},
"ws2812": {
"pin": "A1",
"driver": "pwm"

View File

@ -2,4 +2,3 @@ KEYBOARD_SHARED_EP = yes
MOUSE_SHARED_EP = yes
SERIAL_DRIVER = usart
AUDIO_DRIVER = pwm_hardware

View File

@ -17,6 +17,9 @@
"rgb_matrix": true,
"unicode": true
},
"audio": {
"driver": "dac_basic"
},
"ws2812": {
"pin": "B5",
"driver": "spi"

View File

@ -1 +0,0 @@
AUDIO_DRIVER = dac_basic

View File

@ -75,6 +75,9 @@
"rows": ["A10", "A9", "A8", "B15", "C13", "C14", "C15", "A2"]
},
"diode_direction": "COL2ROW",
"audio": {
"driver": "dac_additive"
},
"encoder": {
"rotary": [
{"pin_a": "B12", "pin_b": "B13"}

View File

@ -1,5 +1,3 @@
AUDIO_DRIVER = dac_additive
RGBLIGHT_SUPPORTED = no
BAKCLIGHT_SUPPORTED = no

View File

@ -13,6 +13,9 @@
"oled": true,
"rgb_matrix": true
},
"audio": {
"driver": "pwm_hardware"
},
"matrix_pins": {
"cols": ["GP8", "GP7", "GP6", "GP5", "GP4"],
"rows": ["GP10", "GP19", "GP20", "GP18"]

View File

@ -1,2 +1 @@
AUDIO_DRIVER = pwm_hardware
SERIAL_DRIVER = vendor

View File

@ -24,6 +24,9 @@
"twinkle": true
}
},
"audio": {
"driver": "dac_additive"
},
"ws2812": {
"pin": "B5",
"driver": "pwm"

View File

@ -14,7 +14,6 @@ CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # Enable N-Key Rollover
AUDIO_ENABLE = yes # Audio output
AUDIO_DRIVER = dac_additive
DYNAMIC_MACRO_ENABLE = yes
DIP_SWITCH_ENABLE = yes

View File

@ -31,6 +31,9 @@
"rows": ["B13", "B14", "B15", "C6", "C7", "C8"],
"cols": ["C0", "C1", "C2", "C3", "A0", "A1", "A2"]
},
"audio": {
"driver": "pwm_software"
},
"backlight": {
"pin": "A7",
"levels": 4

View File

@ -4,8 +4,6 @@ SERIAL_DRIVER = usart
CIE1931_CURVE = yes
AUDIO_DRIVER = pwm_software
QUANTUM_PAINTER_DRIVERS = ili9341_spi
SRC += \

View File

@ -18,6 +18,9 @@
"oled": true,
"rgblight": true
},
"audio": {
"driver": "pwm_hardware"
},
"rgblight": {
"led_count": 8,
"animations": {

View File

@ -1,3 +1 @@
AUDIO_DRIVER = pwm_hardware
DEFAULT_FOLDER = yanghu/unicorne/f411

View File

@ -22,6 +22,9 @@
"rgb_matrix": true,
"swap_hands": true
},
"audio": {
"driver": "dac_additive"
},
"dynamic_keymap": {
"layer_count": 8
},

View File

@ -1,4 +1,3 @@
AUDIO_DRIVER = dac_additive
CUSTOM_MATRIX = lite
# project specific files