forked from vial-kb/vial-qmk
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3db4ab
commit a9184c5
Showing
13 changed files
with
204 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
{ | ||
"bootloader": "atmel-dfu" | ||
"pin_compatible": "elite_c", | ||
"processor": "atmega32u4", | ||
"bootloader": "atmel-dfu", | ||
"encoder": { | ||
"rotary": [ | ||
{"pin_a": "F5", "pin_b": "F4", "resolution": 2} | ||
] | ||
}, | ||
"matrix_pins": { | ||
"cols": ["B1", "B2", "B3", "B6", "F7", "F6"], | ||
"rows": ["D4", "C6", "D7", "E6", "B4"] | ||
}, | ||
"split": { | ||
"encoder": { | ||
"right": { | ||
"rotary": [ | ||
{"pin_a": "F4", "pin_b": "F5", "resolution": 2} | ||
] | ||
} | ||
}, | ||
"soft_serial_pin": "D2", | ||
"transport": { | ||
"protocol": "serial", | ||
}, | ||
}, | ||
"ws2812": { | ||
"pin": "D3" | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
ENCODER_MAP_ENABLE = yes | ||
AUTO_SHIFT_ENABLE = yes | ||
|
||
ifeq ($(strip $(MCU)), atmega32u4) | ||
LTO_ENABLE = yes | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"pin_compatible": "promicro", | ||
"processor": "atmega32u4", | ||
"encoder": { | ||
"rotary": [ | ||
{"pin_a": "F5", "pin_b": "F4", "resolution": 2} | ||
] | ||
}, | ||
"matrix_pins": { | ||
"cols": ["B1", "B2", "B3", "B6", "F7", "F6"], | ||
"rows": ["D4", "C6", "D7", "E6", "B4"] | ||
}, | ||
"split": { | ||
"encoder": { | ||
"right": { | ||
"rotary": [ | ||
{"pin_a": "F4", "pin_b": "F5", "resolution": 2} | ||
] | ||
} | ||
}, | ||
"soft_serial_pin": "D2", | ||
"transport": { | ||
"protocol": "serial", | ||
}, | ||
}, | ||
"ws2812": { | ||
"pin": "D3" | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
{ | ||
"pin_compatible": "promicro", | ||
"processor": "atmega32u4", | ||
"bootloader": "caterina" | ||
} | ||
"encoder": { | ||
"rotary": [ | ||
{"pin_a": "F5", "pin_b": "F4", "resolution": 2} | ||
] | ||
}, | ||
"matrix_pins": { | ||
"cols": ["B1", "B2", "B3", "B6", "F7", "F6"], | ||
"rows": ["D4", "C6", "D7", "E6", "B4"] | ||
}, | ||
"split": { | ||
"encoder": { | ||
"right": { | ||
"rotary": [ | ||
{"pin_a": "F4", "pin_b": "F5", "resolution": 2} | ||
] | ||
} | ||
}, | ||
"soft_serial_pin": "D2", | ||
"transport": { | ||
"protocol": "serial" | ||
}, | ||
}, | ||
"ws2812": { | ||
"pin": "D3" | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright 2024 Markus Knutsson (@TweetyDaBird) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#define SERIAL_USART_TX_PIN GP1 // The GPIO pin that is used split communication. | ||
#define SERIAL_PIO_USE_PIO1 // Force the usage of PIO1 peripheral, by default the Serial implementation uses the PIO0 peripheral | ||
|
||
#define I2C_DRIVER I2CD1 | ||
#define I2C1_SDA_PIN GP2 | ||
#define I2C1_SCL_PIN GP3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright 2022 QMK | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#define HAL_USE_I2C TRUE | ||
|
||
#include_next <halconf.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"development_board": "promicro_rp2040", | ||
"processor": "RP2040", | ||
"bootloader": "rp2040", | ||
"encoder": { | ||
"rotary": [ | ||
{"pin_a": "GP28", "pin_b": "GP29", "resolution": 2} | ||
] | ||
}, | ||
"matrix_pins": { | ||
"cols": ["GP22", "GP23", "GP20", "GP21", "GP26", "GP27"], | ||
"rows": ["GP4", "GP5", "GP6", "GP7", "GP8"] | ||
}, | ||
"split": { | ||
"encoder": { | ||
"right": { | ||
"rotary": [ | ||
{"pin_a": "GP29", "pin_b": "GP28", "resolution": 2} | ||
] | ||
} | ||
}, | ||
"usb_detect": { | ||
"enabled": true | ||
} | ||
}, | ||
"ws2812": { | ||
"driver": "vendor", | ||
"pin": "GP0" | ||
}, | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Copyright 2022 QMK | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include_next <mcuconf.h> | ||
|
||
#undef RP_I2C_USE_I2C1 | ||
#define RP_I2C_USE_I2C1 TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SERIAL_DRIVER = vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DEFAULT_FOLDER = tweetydabird/lotus58/promicro |