Move MCU and bootloader definitions into info.json

This commit is contained in:
lalalademaxiya1 2023-01-31 09:58:46 +08:00
parent 06bcc1cce5
commit eaf047a65c
10 changed files with 28 additions and 34 deletions

View File

@ -8,15 +8,11 @@ A customizable 100% keyboard.
Make example for this keyboard (after setting up your build environment):
```base
make keychron/v6/v6_ansi_stm32l432:default
```
Flashing example for this keyboard:
```base
make keychron/v6/v6_ansi_stm32l432:flash
```
**Reset Key**: Hold down the key located at *K00*, commonly programmed as *Esc* while plugging in the keyboard.

View File

@ -136,4 +136,18 @@ bool led_update_kb(led_t led_state) {
return res;
}
#endif // CAPS_LOCK_LED_INDEX or NUM_LOCK_LED_INDEX
#endif // CAPS_LOCK_LED_INDEX
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; }
if (index == 0) {
if (clockwise) {
tap_code_delay(KC_VOLU, 10);
} else {
tap_code_delay(KC_VOLD, 10);
}
}
return true;
}
#endif

View File

@ -8,6 +8,8 @@
"pid": "0x0360",
"device_version": "1.0.3"
},
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"layouts": {
"LAYOUT_ansi_108": {
"layout": [

View File

@ -1,9 +1,3 @@
# MCU name
MCU = STM32L432
# Bootloader selection
BOOTLOADER = stm32-dfu
# Build Options
# change yes to no to disable.
#

View File

@ -6,8 +6,10 @@
"usb": {
"vid": "0x3434",
"pid": "0x0361",
"device_version": "1.0.2"
"device_version": "1.0.3"
},
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"layouts": {
"LAYOUT_ansi_109": {
"layout": [

View File

@ -1,9 +1,3 @@
# MCU name
MCU = STM32L432
# Bootloader selection
BOOTLOADER = stm32-dfu
# Build Options
# change yes to no to disable.
#

View File

@ -6,8 +6,10 @@
"usb": {
"vid": "0x3434",
"pid": "0x0362",
"device_version": "1.0.2"
"device_version": "1.0.3"
},
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"layouts": {
"LAYOUT_iso_109": {
"layout": [

View File

@ -1,9 +1,3 @@
# MCU name
MCU = STM32L432
# Bootloader selection
BOOTLOADER = stm32-dfu
# Build Options
# change yes to no to disable.
#

View File

@ -6,8 +6,10 @@
"usb": {
"vid": "0x3434",
"pid": "0x0363",
"device_version": "1.0.1"
"device_version": "1.0.2"
},
"processor": "STM32L432",
"bootloader": "stm32-dfu",
"layouts": {
"LAYOUT_iso_110": {
"layout": [

View File

@ -1,9 +1,3 @@
# MCU name
MCU = STM32L432
# Bootloader selection
BOOTLOADER = stm32-dfu
# Build Options
# change yes to no to disable.
#