From 7897fb7c9076ce7ea994dc80e83f3d7a7b58bcf8 Mon Sep 17 00:00:00 2001 From: Thomas Haukland Date: Sat, 4 Feb 2023 12:09:14 +0100 Subject: [PATCH] caps word --- .../blacktyl/keymaps/onekey/keymap.c | 5 ++ .../bastardkb/skeletyl/blackpill/rules.mk | 1 + .../bastardkb/skeletyl/keymaps/tompi/config.h | 2 +- keyboards/blackpill/config.h | 20 ++++++++ keyboards/blackpill/info.json | 33 +++++++++++++ keyboards/blackpill/keymaps/default/keymap.c | 12 +++++ keyboards/blackpill/readme.md | 27 +++++++++++ keyboards/blackpill/rules.mk | 1 + keyboards/rp/config.h | 46 +++++++++++++++++++ keyboards/rp/info.json | 33 +++++++++++++ keyboards/rp/keymaps/default/keymap.c | 12 +++++ keyboards/rp/readme.md | 27 +++++++++++ keyboards/rp/rules.mk | 5 ++ 13 files changed, 223 insertions(+), 1 deletion(-) create mode 100644 keyboards/bastardkb/blacktyl/keymaps/onekey/keymap.c create mode 100644 keyboards/blackpill/config.h create mode 100644 keyboards/blackpill/info.json create mode 100644 keyboards/blackpill/keymaps/default/keymap.c create mode 100644 keyboards/blackpill/readme.md create mode 100644 keyboards/blackpill/rules.mk create mode 100644 keyboards/rp/config.h create mode 100644 keyboards/rp/info.json create mode 100644 keyboards/rp/keymaps/default/keymap.c create mode 100644 keyboards/rp/readme.md create mode 100644 keyboards/rp/rules.mk diff --git a/keyboards/bastardkb/blacktyl/keymaps/onekey/keymap.c b/keyboards/bastardkb/blacktyl/keymaps/onekey/keymap.c new file mode 100644 index 0000000000..a5782f7a13 --- /dev/null +++ b/keyboards/bastardkb/blacktyl/keymaps/onekey/keymap.c @@ -0,0 +1,5 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + LAYOUT_ortho_1x1(KC_A) +}; diff --git a/keyboards/bastardkb/skeletyl/blackpill/rules.mk b/keyboards/bastardkb/skeletyl/blackpill/rules.mk index 18aa91d3d9..edba63ce04 100644 --- a/keyboards/bastardkb/skeletyl/blackpill/rules.mk +++ b/keyboards/bastardkb/skeletyl/blackpill/rules.mk @@ -9,6 +9,7 @@ BOOTLOADER = stm32-dfu # change yes to no to disable # BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite +CAPS_WORD_ENABLE = yes MOUSEKEY_ENABLE = yes # Mouse keys EXTRAKEY_ENABLE = yes # Audio control and System control CONSOLE_ENABLE = yes # Console for debug diff --git a/keyboards/bastardkb/skeletyl/keymaps/tompi/config.h b/keyboards/bastardkb/skeletyl/keymaps/tompi/config.h index 6daa7155dc..22277712a7 100644 --- a/keyboards/bastardkb/skeletyl/keymaps/tompi/config.h +++ b/keyboards/bastardkb/skeletyl/keymaps/tompi/config.h @@ -20,7 +20,7 @@ along with this program. If not, see . #define BOTH_SHIFTS_TURNS_ON_CAPS_WORD // Pick good defaults for enabling homerow modifiers -#define TAPPING_TERM 280 +#define TAPPING_TERM 230 // #define PERMISSIVE_HOLD #define IGNORE_MOD_TAP_INTERRUPT #define TAPPING_FORCE_HOLD diff --git a/keyboards/blackpill/config.h b/keyboards/blackpill/config.h new file mode 100644 index 0000000000..6264ac5aba --- /dev/null +++ b/keyboards/blackpill/config.h @@ -0,0 +1,20 @@ +// Copyright 2022 Thomas Haukland (@Thomas Haukland) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +/* + * Feature disable options + * These options are also useful to firmware size reduction. + */ + +/* disable debug print */ +//#define NO_DEBUG + +/* disable print */ +//#define NO_PRINT + +/* disable action features */ +//#define NO_ACTION_LAYER +//#define NO_ACTION_TAPPING +//#define NO_ACTION_ONESHOT diff --git a/keyboards/blackpill/info.json b/keyboards/blackpill/info.json new file mode 100644 index 0000000000..049a95d6d7 --- /dev/null +++ b/keyboards/blackpill/info.json @@ -0,0 +1,33 @@ +{ + "manufacturer": "Thomas Haukland", + "keyboard_name": "blackpill", + "maintainer": "Thomas Haukland", + "bootloader": "stm32-dfu", + "diode_direction": "COL2ROW", + "features": { + "bootmagic": true, + "command": false, + "console": true, + "extrakey": true, + "mousekey": true, + "nkro": true + }, + "matrix_pins": { + "cols": ["C2"], + "rows": ["D1"] + }, + "processor": "STM32F401", + "url": "", + "usb": { + "device_version": "1.0.0", + "pid": "0x0000", + "vid": "0xFEED" + }, + "layouts": { + "LAYOUT_ortho_1x1": { + "layout": [ + { "matrix": [0, 0], "x": 0, "y": 0 } + ] + } + } +} diff --git a/keyboards/blackpill/keymaps/default/keymap.c b/keyboards/blackpill/keymaps/default/keymap.c new file mode 100644 index 0000000000..9bda2ff9a7 --- /dev/null +++ b/keyboards/blackpill/keymaps/default/keymap.c @@ -0,0 +1,12 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* + * ┌───┐ + * │ A │ + * └───┘ + */ + [0] = LAYOUT_ortho_1x1( + KC_A + ) +}; diff --git a/keyboards/blackpill/readme.md b/keyboards/blackpill/readme.md new file mode 100644 index 0000000000..7dd820031b --- /dev/null +++ b/keyboards/blackpill/readme.md @@ -0,0 +1,27 @@ +# blackpill + +![blackpill](imgur.com image replace me!) + +*A short description of the keyboard/project* + +* Keyboard Maintainer: [Thomas Haukland](https://github.com/Thomas Haukland) +* Hardware Supported: *The PCBs, controllers supported* +* Hardware Availability: *Links to where you can find this hardware* + +Make example for this keyboard (after setting up your build environment): + + make blackpill:default + +Flashing example for this keyboard: + + make blackpill:default:flash + +See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). + +## Bootloader + +Enter the bootloader in 3 ways: + +* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard +* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead +* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available diff --git a/keyboards/blackpill/rules.mk b/keyboards/blackpill/rules.mk new file mode 100644 index 0000000000..6e7633bfe0 --- /dev/null +++ b/keyboards/blackpill/rules.mk @@ -0,0 +1 @@ +# This file intentionally left blank diff --git a/keyboards/rp/config.h b/keyboards/rp/config.h new file mode 100644 index 0000000000..470c3e8700 --- /dev/null +++ b/keyboards/rp/config.h @@ -0,0 +1,46 @@ +// Copyright 2022 Thomas Haukland (@Thomas Haukland) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +/* + * Feature disable options + * These options are also useful to firmware size reduction. + */ + +/* disable debug print */ +//#define NO_DEBUG + +/* disable print */ +//#define NO_PRINT + +/* disable action features */ +//#define NO_ACTION_LAYER +//#define NO_ACTION_TAPPING +//#define NO_ACTION_ONESHOT +// +#define RGBLED_NUM 3 + +#ifdef RGB_MATRIX_ENABLE +# define SPLIT_TRANSPORT_MIRROR +# define RGB_MATRIX_LED_COUNT RGBLED_NUM +# define RGB_MATRIX_SPLIT RGBLED_SPLIT +# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50 +# define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS +# define RGB_DISABLE_WHEN_USB_SUSPENDED +# define RGB_MATRIX_KEYPRESSES +#endif + +/* RGB settings. */ + #define RGB_DI_PIN GP8 + #define WS2812_PWM_DRIVER PWMD2 + #define WS2812_PWM_CHANNEL 2 + #define WS2812_PWM_PAL_MODE 1 + #define WS2812_EXTERNAL_PULLUP + #define WS2812_DMA_STREAM STM32_DMA1_STREAM1 + #define WS2812_DMA_CHANNEL 3 + #define WS2812_PWM_TARGET_PERIOD 900000 + +#define ENABLE_RGB_MATRIX_BREATHING + + diff --git a/keyboards/rp/info.json b/keyboards/rp/info.json new file mode 100644 index 0000000000..850f800736 --- /dev/null +++ b/keyboards/rp/info.json @@ -0,0 +1,33 @@ +{ + "manufacturer": "Thomas Haukland", + "keyboard_name": "rp", + "maintainer": "Thomas Haukland", + "bootloader": "rp2040", + "diode_direction": "COL2ROW", + "features": { + "bootmagic": true, + "command": false, + "console": true, + "extrakey": true, + "mousekey": true, + "nkro": true + }, + "matrix_pins": { + "cols": ["GP1"], + "rows": ["GP2"] + }, + "processor": "RP2040", + "url": "", + "usb": { + "device_version": "1.0.0", + "pid": "0x0000", + "vid": "0xFEED" + }, + "layouts": { + "LAYOUT_ortho_1x1": { + "layout": [ + { "matrix": [0, 0], "x": 0, "y": 0 } + ] + } + } +} diff --git a/keyboards/rp/keymaps/default/keymap.c b/keyboards/rp/keymaps/default/keymap.c new file mode 100644 index 0000000000..9bda2ff9a7 --- /dev/null +++ b/keyboards/rp/keymaps/default/keymap.c @@ -0,0 +1,12 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* + * ┌───┐ + * │ A │ + * └───┘ + */ + [0] = LAYOUT_ortho_1x1( + KC_A + ) +}; diff --git a/keyboards/rp/readme.md b/keyboards/rp/readme.md new file mode 100644 index 0000000000..46b6c0012c --- /dev/null +++ b/keyboards/rp/readme.md @@ -0,0 +1,27 @@ +# rp + +![rp](imgur.com image replace me!) + +*A short description of the keyboard/project* + +* Keyboard Maintainer: [Thomas Haukland](https://github.com/Thomas Haukland) +* Hardware Supported: *The PCBs, controllers supported* +* Hardware Availability: *Links to where you can find this hardware* + +Make example for this keyboard (after setting up your build environment): + + make rp:default + +Flashing example for this keyboard: + + make rp:default:flash + +See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). + +## Bootloader + +Enter the bootloader in 3 ways: + +* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard +* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead +* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available diff --git a/keyboards/rp/rules.mk b/keyboards/rp/rules.mk new file mode 100644 index 0000000000..62a55ac4b0 --- /dev/null +++ b/keyboards/rp/rules.mk @@ -0,0 +1,5 @@ +# This file intentionally left blank + +RGB_MATRIX_SUPPORTED = yes +RGB_MATRIX_DRIVER = WS2812 +