Skip to content

Commit

Permalink
Add Adafruit Macropad
Browse files Browse the repository at this point in the history
  • Loading branch information
Jpe230 authored and yiancar committed Jan 9, 2023
1 parent f3f76f6 commit 2c1cb6d
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 0 deletions.
85 changes: 85 additions & 0 deletions src/adafruit/macropad/macropad.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"name": "Adafruit MacroPad RP2040",
"vendorId": "0x239A",
"productId": "0x0108",
"lighting": {
"extends": "qmk_rgblight",
"underglowEffects": [
["None", 0],
["Solid Color", 1],
["Alpha Mods", 1],
["Gradient Up Down", 1],
["Gradient Left Right", 1],
["Breathing", 1],
["Band Sat", 1],
["Band Val", 1],
["Band PinWheel Sat", 1],
["Band PinWheel Val", 1],
["Ban Spiral Sat", 1],
["Ban Spiral Val", 1],
["Cycle All", 1],
["Cycle Left Right", 1],
["Cycle Up Down", 1],
["Rainbow Moving Chevron", 1],
["Cycle Out In", 1],
["Cycle Out In Dual", 1],
["Cycle Pinwheel", 1],
["Cycle Spiral", 1],
["Dual Beacon", 1],
["Rainbow Beacon", 1],
["Rainbow Pinwheels", 1],
["Raindrops", 1],
["Jellybeans Raindrops", 1],
["Hue Breathing", 1],
["Hue Pendulum", 1],
["Hue Wave", 1],
["Pixel Rain", 1],
["Pixel Flow", 1],
["Pixel Fractal", 1],
["Typing Heatmap", 1],
["Digital Rain", 1],
["Solid Reactive Simple", 1],
["Solid Reactive", 1],
["Solid Reactive Wide", 1],
["Solid Reactive MultiWide", 1],
["Solid Reactive Cross", 1],
["Solid Reactive MultiCross", 1],
["Solid Reactive Nexus", 1],
["Solid Reactive MultiNexus", 1],
["Splash", 1],
["MultiSplash", 1],
["Solid Splash", 1],
["Solid MultiSplash", 1]
],
"supportedLightingValues": [128, 129, 130, 131]
},
"matrix": { "rows": 5, "cols": 3 },
"layouts": {
"keymap": [
[
{"x":2},
"0,2\n\n\n\n\n\n\n\n\ne0"
],
[
"1,0",
"1,1",
"1,2"
],
[
"2,0",
"2,1",
"2,2"
],
[
"3,0",
"3,1",
"3,2"
],
[
"4,0",
"4,1",
"4,2"
]
]
}
}
118 changes: 118 additions & 0 deletions v3/adafruit/macropad/macropad.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"name": "Adafruit MacroPad RP2040",
"vendorId": "0x239A",
"productId": "0x0108",
"keycodes": ["qmk_lighting"],
"menus": [
{
"label": "Lighting",
"content": [
{
"label": "Backlight",
"content": [
{
"label": "Brightness",
"type": "range",
"options": [0, 255],
"content": ["id_qmk_rgb_matrix_brightness", 3, 1]
},
{
"label": "Effect",
"type": "dropdown",
"content": ["id_qmk_rgb_matrix_effect", 3, 2],
"options": [
["None", 0],
["Solid Color", 1],
["Alpha Mods", 2],
["Gradient Up Down", 3],
["Gradient Left Right", 4],
["Breathing", 5],
["Band Sat", 6],
["Band Val", 7],
["Band PinWheel Sat", 8],
["Band PinWheel Val", 9],
["Ban Spiral Sat", 10],
["Ban Spiral Val", 11],
["Cycle All", 12],
["Cycle Left Right", 13],
["Cycle Up Down", 14],
["Rainbow Moving Chevron", 15],
["Cycle Out In", 16],
["Cycle Out In Dual", 17],
["Cycle Pinwheel", 18],
["Cycle Spiral", 19],
["Dual Beacon", 20],
["Rainbow Beacon", 21],
["Rainbow Pinwheels", 22],
["Raindrops", 23],
["Jellybeans Raindrops", 24],
["Hue Breathing", 25],
["Hue Pendulum", 26],
["Hue Wave", 27],
["Pixel Rain", 28],
["Pixel Flow", 29],
["Pixel Fractal", 30],
["Typing Heatmap", 31],
["Digital Rain", 32],
["Solid Reactive Simple", 33],
["Solid Reactive", 34],
["Solid Reactive Wide", 35],
["Solid Reactive MultiWide", 36],
["Solid Reactive Cross", 37],
["Solid Reactive MultiCross", 38],
["Solid Reactive Nexus", 39],
["Solid Reactive MultiNexus", 40],
["Splash", 41],
["MultiSplash", 42],
["Solid Splash", 43],
["Solid MultiSplash", 44]
]
},
{
"showIf": "{id_qmk_rgb_matrix_effect} > 1",
"label": "Effect Speed",
"type": "range",
"options": [0, 255],
"content": ["id_qmk_rgb_matrix_effect_speed", 3, 3]
},
{
"showIf": "{id_qmk_rgb_matrix_effect} != 0",
"label": "Color",
"type": "color",
"content": ["id_qmk_rgb_matrix_color", 3, 4]
}
]
}
]
}
],
"matrix": { "rows": 5, "cols": 3 },
"layouts": {
"keymap": [
[
{"x":2},
"0,2\n\n\n\n\n\n\n\n\ne0"
],
[
"1,0",
"1,1",
"1,2"
],
[
"2,0",
"2,1",
"2,2"
],
[
"3,0",
"3,1",
"3,2"
],
[
"4,0",
"4,1",
"4,2"
]
]
}
}

0 comments on commit 2c1cb6d

Please sign in to comment.