Compare commits

...

13 Commits

Author SHA1 Message Date
Mikael Manukyan 85d5228108
Merge 9854be68ea into 7e53bb9965 2024-10-15 21:51:24 +01:00
QMK Bot 7e53bb9965 Merge remote-tracking branch 'origin/master' into develop 2024-10-15 14:06:17 +00:00
Ryan 85a7627641
Digitizer: fix units tag in report descriptor (#24482) 2024-10-15 07:05:43 -07:00
Mikael Manukyan 9854be68ea
Update config.h 2023-03-10 20:44:54 -08:00
Mikael Manukyan c7ed39a235
Update config.h 2023-03-10 20:43:39 -08:00
Mikael Manukyan 2ffcf7e937
Update keyboards/bastardkb/charybdis/3x6/kb2040/info.json
Co-authored-by: Drashna Jaelre <drashna@live.com>
2023-03-10 20:40:37 -08:00
Mikael Manukyan 28e12cd40f
Update keyboards/bastardkb/charybdis/3x6/kb2040/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
2023-03-10 20:40:31 -08:00
Mikael Manukyan ca170ddd31
Update keyboards/bastardkb/charybdis/3x6/kb2040/config.h
Co-authored-by: jack <0x6a73@protonmail.com>
2023-03-09 23:16:58 -08:00
Mikael Manukyan 49bb1a6e62
Update keyboards/bastardkb/charybdis/3x6/kb2040/info.json
Co-authored-by: jack <0x6a73@protonmail.com>
2023-03-09 23:16:46 -08:00
Mikael Manukyan b0d7e44ed5
Update keyboards/bastardkb/charybdis/3x6/kb2040/config.h
Co-authored-by: jack <0x6a73@protonmail.com>
2023-03-09 23:16:41 -08:00
Mikael Manukyan 58c3405b02
Update keyboards/bastardkb/charybdis/3x6/kb2040/rules.mk
Co-authored-by: jack <0x6a73@protonmail.com>
2023-03-09 23:16:37 -08:00
Mikael Manukyan ca89529c32
Update keyboards/bastardkb/charybdis/3x6/kb2040/rules.mk
Co-authored-by: jack <0x6a73@protonmail.com>
2023-03-09 23:16:31 -08:00
Mikael Manukyan 1d4e046fcd Add KB2040 config 2023-03-08 21:18:05 -08:00
6 changed files with 101 additions and 2 deletions

View File

@ -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

View File

@ -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"
}

View File

@ -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

View File

@ -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

View File

@ -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),

View File

@ -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