I banged out a macropad .json. This is for Build support 1 - Create JSON - Vial
/keyboards/framework/macropad/keymaps/vial/vial.json
{
"name": "Framework Laptop 16 RGB Macropad",
"vendorId": "0x32AC",
"productId": "0x0013",
"lighting": "vialrgb",
"matrix": {
"rows": 4,
"cols": 8
},
"layouts": {
"keymap": [
[
{
"h": 0.75
},
"2,1",
{
"x": 0.25,
"h": 0.75
},
"2,2",
{
"x": 0.25,
"h": 0.75
},
"3,4",
{
"x": 0.25,
"h": 0.75
},
"2,4"
],
[
{
"h": 1.25
},
"0,0",
{
"x": 0.25,
"h": 1.25
},
"0,4",
{
"x": 0.25,
"h": 1.25
},
"1,1",
{
"x": 0.25,
"h": 1.25
},
"1,6"
],
[
{
"y": 0.5,
"h": 1.25
},
"0,1",
{
"x": 0.25,
"h": 1.25
},
"0,5",
{
"x": 0.25,
"h": 1.25
},
"1,2",
{
"x": 0.25,
"h": 1.25
},
"2,5"
],
[
{
"y": 0.5,
"h": 1.25
},
"0,2",
{
"x": 0.25,
"h": 1.25
},
"0,6",
{
"x": 0.25,
"h": 1.25
},
"1,3",
{
"x": 0.25,
"h": 1.25
},
"1,7"
],
[
{
"y": 0.5,
"h": 1.25
},
"0,3",
{
"x": 0.25,
"h": 1.25
},
"0,7",
{
"x": 0.25,
"h": 1.25
},
"1,4",
{
"x": 0.25,
"h": 1.25
},
"2,6"
],
[
{
"y": 0.5,
"h": 1.25
},
"1,0",
{
"x": 0.25,
"h": 1.25
},
"2,7",
{
"x": 0.25,
"h": 1.25
},
"1,5",
{
"x": 0.25,
"h": 1.25
},
"2,0"
]
]
}
}
Here it is tested with File
> Load dummy JSON...
Here is a macropad Vial config.h (untested).
/keyboards/framework/macropad/keymaps/vial/config.h
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0xD8, 0xE7, 0xC9, 0x76, 0x08, 0x89, 0x28, 0x14}
/* Set Vial unlock key combo */
// top left key: 3,2, plus top right key: 3,5
#define VIAL_UNLOCK_COMBO_ROWS { 3, 3 }
#define VIAL_UNLOCK_COMBO_COLS { 2, 5 }
/* Increase layer & macro counts for Vial */
#define DYNAMIC_KEYMAP_LAYER_COUNT 8 // default is 4
#define DYNAMIC_KEYMAP_MACRO_COUNT 32 // default is 16?
And here is a macropad Vial rules.mk (untested).
I am not sure if RGB_MATRIX_DRIVER
needs to be defined here.
/keyboards/framework/macropad/keymaps/vial/rules.mk
# MCU name #
MCU = RP2040
BOOTLOADER = rp2040
# Vial options #
VIA_ENABLE = yes # needed for Vial
VIAL_ENABLE = yes
#VIAL_INSECURE = yes # Disable Vial's secure unlock combo. Locked options: changing macros, reboot to bootloader menu option, Assigning RESET keycode
# RGB matrix #
RGB_MATRIX_ENABLE = yes
VIALRGB_ENABLE = yes
For the vial keymap, just copy over the default macropad one, as they say get.vial.today/docs/porting-to-vial.html#2-create-a-new-vial-keymap
And I think that should be it.