mirror of https://github.com/qmk/qmk_firmware
Compare commits
13 Commits
6319768293
...
85d5228108
Author | SHA1 | Date |
---|---|---|
Mikael Manukyan | 85d5228108 | |
QMK Bot | 7e53bb9965 | |
Ryan | 85a7627641 | |
Mikael Manukyan | 9854be68ea | |
Mikael Manukyan | c7ed39a235 | |
Mikael Manukyan | 2ffcf7e937 | |
Mikael Manukyan | 28e12cd40f | |
Mikael Manukyan | ca170ddd31 | |
Mikael Manukyan | 49bb1a6e62 | |
Mikael Manukyan | b0d7e44ed5 | |
Mikael Manukyan | 58c3405b02 | |
Mikael Manukyan | ca89529c32 | |
Mikael Manukyan | 1d4e046fcd |
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* Copyright 2023 <@mike1808>
|
||||
*
|
||||
* 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
|
||||
|
||||
|
||||
/* Handedness. */
|
||||
#define EE_HANDS
|
||||
|
||||
/* SPI & PMW3360 settings. */
|
||||
#define SPI_DRIVER SPID0
|
||||
#define SPI_SCK_PIN GP18
|
||||
#define SPI_MISO_PIN GP19
|
||||
#define SPI_MOSI_PIN GP20
|
||||
#define PMW33XX_CS_PIN GP10
|
||||
#define POINTING_DEVICE_CS_PIN GP10
|
||||
|
||||
/* Reset. */
|
||||
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
|
||||
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 1000U
|
||||
|
||||
#define PMW33XX_LIFTOFF_DISTANCE 0x03
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"keyboard_name": "Charybdis (4x6) KB2040",
|
||||
"usb": {
|
||||
"device_version": "2.0.0"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["GP2", "GP1", "GP29", "GP6", "GP7", "GP8"],
|
||||
"rows": ["GP3", "GP5", "GP4", "GP9"]
|
||||
},
|
||||
"split": {
|
||||
"enabled": true,
|
||||
"soft_serial_pin": "GP0"
|
||||
"bootmagic": {
|
||||
"matrix": [4, 0]
|
||||
}
|
||||
},
|
||||
"processor": "RP2040",
|
||||
"bootloader": "rp2040"
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
/* Copyright 2020 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_SPI_USE_SPI0
|
||||
#define RP_SPI_USE_SPI0 TRUE
|
||||
|
||||
#undef RP_SPI_USE_SPI1
|
||||
#define RP_SPI_USE_SPI1 TRUE
|
|
@ -0,0 +1,20 @@
|
|||
OPT_DEFS += -DHAL_USE_SPI=TRUE
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = no # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = yes # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
POINTING_DEVICE_ENABLE = yes # Enable trackball
|
||||
POINTING_DEVICE_DRIVER = pmw3360
|
||||
|
||||
SERIAL_DRIVER = vendor
|
||||
WS2812_DRIVER = vendor
|
||||
|
||||
|
|
@ -305,7 +305,7 @@ const USB_Descriptor_HIDReport_Datatype_t PROGMEM SharedReport[] = {
|
|||
HID_RI_LOGICAL_MAXIMUM(16, 0x7FFF),
|
||||
HID_RI_REPORT_COUNT(8, 0x02),
|
||||
HID_RI_REPORT_SIZE(8, 0x10),
|
||||
HID_RI_UNIT(8, 0x33), // Inch, English Linear
|
||||
HID_RI_UNIT(8, 0x13), // Inch, English Linear
|
||||
HID_RI_UNIT_EXPONENT(8, 0x0E), // -2
|
||||
HID_RI_INPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_ABSOLUTE),
|
||||
HID_RI_END_COLLECTION(0),
|
||||
|
|
|
@ -673,7 +673,7 @@ const PROGMEM uchar shared_hid_report[] = {
|
|||
0x26, 0xFF, 0x7F, // Logical Maximum (32767)
|
||||
0x95, 0x02, // Report Count (2)
|
||||
0x75, 0x10, // Report Size (16)
|
||||
0x65, 0x33, // Unit (Inch, English Linear)
|
||||
0x65, 0x13, // Unit (Inch, English Linear)
|
||||
0x55, 0x0E, // Unit Exponent (-2)
|
||||
0x81, 0x02, // Input (Data, Variable, Absolute)
|
||||
0xC0, // End Collection
|
||||
|
|
Loading…
Reference in New Issue