Avalanche initial setup

This commit is contained in:
root 2025-08-25 23:40:22 +08:00
parent 9132830229
commit 6e42aff227
5 changed files with 43 additions and 8 deletions

View file

@ -16,3 +16,5 @@
#define VIAL_KEYBOARD_UID {0x58, 0x8C, 0xA2, 0x28, 0x65, 0xFA, 0xE1, 0x58}
#define VIAL_UNLOCK_COMBO_ROWS { 2, 2 }
#define VIAL_UNLOCK_COMBO_COLS { 1, 4 }
// #define DYNAMIC_KEYMAP_LAYER_COUNT 3 // 3416-3396= 20

View file

@ -1,8 +1,9 @@
# Build Options
# change yes to no to disable
#
VIA_ENABLE = yes
VIAL_ENABLE = yes
VIA_ENABLE = yes # VIA support
VIAL_ENABLE = yes # Vial support
LTO_ENABLE = yes # Link Time Optimization
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
MOUSEKEY_ENABLE = yes # Mouse keys
@ -11,11 +12,17 @@ CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
ENCODER_ENABLE = yes
OLED_ENABLE = yes
OLED_ENABLE = no
# TAP_DANCE_ENABLE = no # 3416 - 1724 = 1692
COMBO_ENABLE = no # 3416 - 1334 = 2082
# KEY_OVERRIDE_ENABLE = no
QMK_SETTINGS = no
SPLIT_KEYBOARD = yes
ENCODER_MAP_ENABLE = yes
CONVERT_TO = rp2040_ce
#CONVERT_TO = rp2040_ce

View file

@ -1,5 +1,7 @@
{
"lighting": "none",
"name" : "Avalanche V4",
"product_id": "0xCEE2",
"vendor_id": "0x0004",
"matrix": {
"rows": 10,
"cols": 7
@ -351,4 +353,4 @@
]
]
}
}
}

View file

@ -0,0 +1,24 @@
# How to build using vial-qmk
I use vial-qmk instead of qmk-firmware for one reason: The VIA web keyboard configurator does not support Avalanche keyboard yet.
Web configurator is the gem of QMK based keyboard. VIAL is the one supporting it.
To build:
``` bash
git clone https://github.com/peterliu-tw/vial-qmk.git
cd ./vial-qmk
qmk compile -kb avalanche/v4 -km vial
```
The downside of VIAL-QMK is it use a lot of EEPROM size. In the future:
# switch back to qmk-firmware when VIA supports Avalanche.
# Change the microcontroller from ProMicro to RP2040
# How to flash
Get QMK Toolbox and google on how to use it.
# How to Configure keymap
https://vial.rocks/

View file

@ -100,7 +100,7 @@ STATIC_ASSERT(DYNAMIC_KEYMAP_EEPROM_MAX_ADDR <= 65535, "DYNAMIC_KEYMAP_EEPROM_MA
// The keyboard should override DYNAMIC_KEYMAP_LAYER_COUNT to reduce it,
// or DYNAMIC_KEYMAP_EEPROM_MAX_ADDR to increase it, *only if* the microcontroller has
// more than the default.
STATIC_ASSERT((int64_t)(DYNAMIC_KEYMAP_EEPROM_MAX_ADDR) - (int64_t)(DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR) >= 100, "Dynamic keymaps are configured to use more EEPROM than is available.");
STATIC_ASSERT((int64_t)(DYNAMIC_KEYMAP_EEPROM_MAX_ADDR) - (int64_t)(DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR) >= 0, "Dynamic keymaps are configured to use more EEPROM than is available.");
#ifndef TOTAL_EEPROM_BYTE_COUNT
# error Unknown total EEPROM size. Cannot derive maximum for dynamic keymaps.