Compare commits

...

10 Commits

Author SHA1 Message Date
61549ecfc6 config for STM32F103RB
Some checks failed
Update API Data / api_data (push) Has been cancelled
CLI CI / test (push) Has been cancelled
Update develop after master merge / develop_update (push) Has been cancelled
Lint Format / lint (push) Has been cancelled
Regenerate Files / regen (push) Has been cancelled
Unit Tests / test (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled
Automatic Approve / automatic_approve (push) Has been cancelled
2025-01-04 16:31:39 +01:00
aab0bde9f3 open drain for led 2025-01-04 16:31:02 +01:00
f2d07096bd init led problem fix 2025-01-04 16:30:25 +01:00
Joel Challis
e7a08ef1a9 Fix broken link in PR checklist (#23877) 2024-06-07 23:25:20 +10:00
Syenasweta a.k.a. Nashrullah Ali Fauzi
950d765370 Add SyenaKeyboards Elaruus (#23870)
* add syenakeyboard elaruus

* add syenakeyboards elaruus

* add syenakeyboards elaruus

* add syenakeyboards elaruus

* add syenakeyboards/elaruus

* add syenakeyboards elaruus

* add syenakeyboards elaruus

* add syenakeyboards elaruus

* Update keyboards/syenakeyboards/elaruus/keyboard.json

Co-authored-by: jack <0x6a73@protonmail.com>

* Update keyboards/syenakeyboards/elaruus/keymaps/default/keymap.c

Co-authored-by: jack <0x6a73@protonmail.com>

* Update keyboards/syenakeyboards/elaruus/keymaps/via/keymap.c

Co-authored-by: jack <0x6a73@protonmail.com>

---------

Co-authored-by: Syenasweta <syenasweta@gmail.com>
Co-authored-by: jack <0x6a73@protonmail.com>
2024-06-06 19:17:21 -06:00
Kim Viberti
260e9a546e Fix documentation error (#23872)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Co-authored-by: Ryan <fauxpark@gmail.com>
2024-06-06 12:09:44 +10:00
Nick Brassel
a4da5f219f Fixup build failures. (#23869) 2024-06-05 12:20:57 +10:00
Nick Brassel
6d365dd8f1 Add helper make targets for formatting and pytest. (#23858) 2024-06-04 12:23:25 +10:00
Stefan Kerkmann
8253697a63 [FIX] ChibiOS: USB Digitizer and Joystick IN endpoint compilation (#23854)
Co-authored-by: Ryan <fauxpark@gmail.com>
2024-06-03 22:35:46 +10:00
Nick Brassel
282253a7e0 [docs] Add ability to redirect based on input path. (#23851) 2024-06-03 08:55:03 +10:00
23 changed files with 578 additions and 14 deletions

View File

@@ -465,3 +465,18 @@ distclean_userspace: clean
rm -f $(QMK_USERSPACE)/*.bin $(QMK_USERSPACE)/*.hex $(QMK_USERSPACE)/*.uf2
echo 'done.'
endif
# Extra targets for formatting and/or pytest, running within the qmk/qmk_cli container to match GHA.
CONTAINER_PREAMBLE := export HOME="/tmp"; export PATH="/tmp/.local/bin:\$$PATH"; python3 -m pip install --upgrade pip; python3 -m pip install -r requirements-dev.txt
.PHONY: format-core
format-core:
RUNTIME=docker ./util/docker_cmd.sh bash -lic "$(CONTAINER_PREAMBLE); qmk format-c --core-only -a && qmk format-python -a"
.PHONY: pytest
pytest:
RUNTIME=docker ./util/docker_cmd.sh bash -lic "$(CONTAINER_PREAMBLE); qmk pytest"
.PHONY: format-and-pytest
format-and-pytest:
RUNTIME=docker ./util/docker_cmd.sh bash -lic "$(CONTAINER_PREAMBLE); qmk format-c --core-only -a && qmk format-python -a && qmk pytest"

View File

@@ -2,11 +2,22 @@
import DefaultTheme from 'vitepress/theme'
import { useRouter } from 'vitepress'
import { onBeforeMount } from 'vue';
import aliases from "../../../../docs/_aliases.json";
const router = useRouter()
onBeforeMount(async () => {
if (window.location.href.includes('/#/')) {
const newUrl = window.location.href.replace(/\/#\//, '/').replace(/\?id=/, '#');
// Convert from docsify-style to vitepress-style URLs
let newUrl = window.location.href.replace(/\/#\//, '/').replace(/\?id=/, '#');
// Convert any aliases
let testUrl = new URL(newUrl);
while (testUrl.pathname in aliases) {
testUrl.pathname = aliases[testUrl.pathname];
}
newUrl = testUrl.toString();
// Redirect if required
if (newUrl != window.location.href) {
window.history.replaceState({}, '', newUrl);
await router.go(newUrl);
}

74
docs/_aliases.json Normal file
View File

@@ -0,0 +1,74 @@
{
"/adding_a_keyboard_to_qmk": "/hardware_keyboard_guidelines",
"/build_environment_setup": "/newbs_getting_started",
"/cli_dev_configuration": "/cli_configuration",
"/dynamic_macros": "/feature_dynamic_macros",
"/feature_common_shortcuts": "/feature_advanced_keycodes",
"/getting_started_build_tools": "/newbs_getting_started",
"/getting_started_getting_help": "/support",
"/glossary": "/reference_glossary",
"/key_lock": "/feature_key_lock",
"/make_instructions": "/getting_started_make_guide",
"/python_development": "/cli_development",
"/space_cadet_shift": "/feature_space_cadet_shift",
"/tap_dance": "/feature_tap_dance",
"/tutorial": "/newbs",
"/unicode": "/feature_unicode",
"/adc_driver": "/drivers/adc",
"/apa102_driver": "/drivers/apa102",
"/audio_driver": "/drivers/audio",
"/eeprom_driver": "/drivers/eeprom",
"/feature_audio": "/features/audio",
"/feature_auto_shift": "/features/auto_shift",
"/feature_autocorrect": "/features/autocorrect",
"/feature_backlight": "/features/backlight",
"/feature_bluetooth": "/features/bluetooth",
"/feature_bootmagic": "/features/bootmagic",
"/feature_caps_word": "/features/caps_word",
"/feature_combo": "/features/combo",
"/feature_command": "/features/command",
"/feature_digitizer": "/features/digitizer",
"/feature_dip_switch": "/features/dip_switch",
"/feature_dynamic_macros": "/features/dynamic_macros",
"/feature_encoders": "/features/encoders",
"/feature_grave_esc": "/features/grave_esc",
"/feature_haptic_feedback": "/features/haptic_feedback",
"/feature_hd44780": "/features/hd44780",
"/feature_joystick": "/features/joystick",
"/feature_key_lock": "/features/key_lock",
"/feature_key_overrides": "/features/key_overrides",
"/feature_leader_key": "/features/leader_key",
"/feature_led_indicators": "/features/led_indicators",
"/feature_led_matrix": "/features/led_matrix",
"/feature_midi": "/features/midi",
"/feature_mouse_keys": "/features/mouse_keys",
"/feature_oled_driver": "/features/oled_driver",
"/feature_os_detection": "/features/os_detection",
"/feature_pointing_device": "/features/pointing_device",
"/feature_programmable_button": "/features/programmable_button",
"/feature_ps2_mouse": "/features/ps2_mouse",
"/feature_rawhid": "/features/rawhid",
"/feature_repeat_key": "/features/repeat_key",
"/feature_rgb_matrix": "/features/rgb_matrix",
"/feature_rgblight": "/features/rgblight",
"/feature_secure": "/features/secure",
"/feature_send_string": "/features/send_string",
"/feature_sequencer": "/features/sequencer",
"/feature_space_cadet": "/features/space_cadet",
"/feature_split_keyboard": "/features/split_keyboard",
"/feature_st7565": "/features/st7565",
"/feature_stenography": "/features/stenography",
"/feature_swap_hands": "/features/swap_hands",
"/feature_tap_dance": "/features/tap_dance",
"/feature_tri_layer": "/features/tri_layer",
"/feature_unicode": "/features/unicode",
"/feature_wpm": "/features/wpm",
"/flash_driver": "/drivers/flash",
"/gpio_control": "/drivers/gpio",
"/i2c_driver": "/drivers/i2c",
"/serial_driver": "/drivers/serial",
"/spi_driver": "/drivers/spi",
"/uart_driver": "/drivers/uart",
"/ws2812_driver": "/drivers/ws2812"
}

View File

@@ -1,6 +1,6 @@
# Swap-Hands Action
The swap-hands action allows support for one-handed typing without requiring a separate layer. Set `SWAP_HANDS_ENABLE` in the Makefile and define a `hand_swap_config` entry in your keymap. Now whenever the `ACTION_SWAP_HANDS` command key is pressed the keyboard is mirrored. For instance, to type "Hello, World" on QWERTY you would type `^Ge^s^s^w^c W^wr^sd`
The swap-hands action allows support for one-handed typing without requiring a separate layer. Set `SWAP_HANDS_ENABLE = yes` in your keymap's `rules.mk` (creating it if needed), and define a `hand_swap_config` entry in your keymap. Now whenever the `ACTION_SWAP_HANDS` command key is pressed the keyboard is mirrored. For instance, to type "Hello, World" on QWERTY you would type `^Ge^s^s^w^c W^wr^sd`
## Configuration

View File

@@ -88,7 +88,7 @@ https://github.com/qmk/qmk_firmware/pulls?q=is%3Apr+is%3Aclosed+label%3Akeyboard
- RGB Matrix Configuration
- Run `qmk format-json` on this file before submitting your PR. Be sure to append the `-i` flag to directly modify the file, or paste the outputted code into the file.
- `readme.md`
- must follow the [template](https://github.com/qmk/qmk_firmware/blob/master/data/templates/keyboard/readme)
- must follow the [template](https://github.com/qmk/qmk_firmware/blob/master/data/templates/keyboard/readme.md)
- flash command is present, and has `:flash` at end
- valid hardware availability link (unless handwired) -- private groupbuys are okay, but one-off prototypes will be questioned. If open-source, a link to files should be provided.
- clear instructions on how to reset the board into bootloader mode

View File

@@ -4,12 +4,12 @@
#include "quantum.h"
void matrix_init_user(void) {
gpio_set_pin_output(C6);
gpio_set_pin_output(B2);
gpio_set_pin_output(B1);
matrix_init_user();
void matrix_init_kb(void) {
gpio_set_pin_output(C6);
gpio_set_pin_output(B2);
gpio_set_pin_output(B1);
matrix_init_user();
}
bool led_update_kb(led_t led_state) {

View File

@@ -0,0 +1,5 @@
{
"build": {
"lto": true
}
}

View File

@@ -8,6 +8,9 @@
"pid": "0xAE01",
"device_version": "0.0.4"
},
"build": {
"lto": true
},
"features": {
"audio": true,
"bootmagic": true,

View File

@@ -8,6 +8,9 @@
"pid": "0xAE01",
"device_version": "0.0.5"
},
"build": {
"lto": true
},
"features": {
"audio": true,
"bootmagic": true,

View File

@@ -0,0 +1,31 @@
{
"manufacturer": "Syenasweta",
"keyboard_name": "SyenaKeyboards Elaruus",
"maintainer": "syenasweta",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"extrakey": true,
"mousekey": true
},
"matrix_pins": {
"cols": ["GP21", "GP19"],
"rows": ["GP10"]
},
"processor": "RP2040",
"url": "https://github.com/syenasweta/syenakeyboards",
"usb": {
"device_version": "1.0.0",
"pid": "0x6172",
"vid": "0x5373"
},
"layouts": {
"LAYOUT_ortho_1x2": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0}
]
}
}
}

View File

@@ -0,0 +1,16 @@
// Copyright 2024 QMK
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho_1x2(
LT(1,KC_LEFT), LT(2,KC_RIGHT)
),
[1] = LAYOUT_ortho_1x2(
_______, KC_UP
),
[2] = LAYOUT_ortho_1x2(
KC_DOWN, _______
)
};

View File

@@ -0,0 +1,16 @@
// Copyright 2024 QMK
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho_1x2(
LT(1,KC_LEFT), LT(2,KC_RIGHT)
),
[1] = LAYOUT_ortho_1x2(
_______, KC_UP
),
[2] = LAYOUT_ortho_1x2(
KC_DOWN, _______
)
};

View File

@@ -0,0 +1 @@
VIA_ENABLE = yes

View File

@@ -0,0 +1,25 @@
# SyenaKeyboards Elaruus
![SyenaKeyboards Elaruus](https://i.imgur.com/6qU13gi.jpeg)
Elaruus is ortholinear 1x2 mechanical keyboard with two switch for everythinks. The default functions are `left`, `right`. Elaruus is supported by QMK Firmware and VIA.
* Keyboard Maintainer: [Syenasweta](https://github.com/syenasweta)
* Hardware Supported: RP2040
* Hardware Availability: [Tokopedia (Syenasweta)](https://tokopedia.link/Ak0c4uqpbKb)
Make example for this keyboard (after setting up your build environment):
make syenakeyboards/elaruus:default
Flashing example for this keyboard:
make syenakeyboards/elaruss: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 1 ways:
* **Bootmagic reset**: Hold down the top left key (assigned to `left` by default) and plug in the keyboard.

87
keyboards/testboard2/config.h Executable file
View File

@@ -0,0 +1,87 @@
// Copyright 2024 Johannes Paehr (@jpaehr)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
// #include "config_common.h"
/*
* 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
// The pin connected to the data pin of the LEDs
#define WS2812_DI_PIN C10
// #define WS2812_DI_PIN B3
// #define WS2812_DI_PIN A15
// #define WS2812_DI_PIN B6
// The number of LEDs connected
#define RGB_MATRIX_LED_COUNT 88
// #define WS2812_LED_COUNT 88
// #define WS2812_TIMING 3000
#define WS2812_EXTERNAL_PULLUP
// #define WS2812_PWM_COMPLEMENTARY_OUTPUT
#define ENABLE_RGB_MATRIX_BREATHING
#define ENABLE_RGB_MATRIX_ALPHAS_MODS // Enables RGB_MATRIX_ALPHAS_MODS
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN // Enables RGB_MATRIX_GRADIENT_UP_DOWN
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT // Enables RGB_MATRIX_GRADIENT_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_BREATHING // Enables RGB_MATRIX_BREATHING
#define ENABLE_RGB_MATRIX_BAND_SAT // Enables RGB_MATRIX_BAND_SAT
#define ENABLE_RGB_MATRIX_BAND_VAL // Enables RGB_MATRIX_BAND_VAL
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Enables RGB_MATRIX_BAND_PINWHEEL_SAT
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Enables RGB_MATRIX_BAND_PINWHEEL_VAL
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT // Enables RGB_MATRIX_BAND_SPIRAL_SAT
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL // Enables RGB_MATRIX_BAND_SPIRAL_VAL
#define ENABLE_RGB_MATRIX_CYCLE_ALL // Enables RGB_MATRIX_CYCLE_ALL
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT // Enables RGB_MATRIX_CYCLE_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN // Enables RGB_MATRIX_CYCLE_UP_DOWN
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Enables RGB_MATRIX_RAINBOW_MOVING_CHEVRON
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN // Enables RGB_MATRIX_CYCLE_OUT_IN
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Enables RGB_MATRIX_CYCLE_OUT_IN_DUAL
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL // Enables RGB_MATRIX_CYCLE_PINWHEEL
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL // Enables RGB_MATRIX_CYCLE_SPIRAL
#define ENABLE_RGB_MATRIX_DUAL_BEACON // Enables RGB_MATRIX_DUAL_BEACON
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON // Enables RGB_MATRIX_RAINBOW_BEACON
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Enables RGB_MATRIX_RAINBOW_PINWHEELS
#define ENABLE_RGB_MATRIX_FLOWER_BLOOMING // Enables RGB_MATRIX_FLOWER_BLOOMING
#define ENABLE_RGB_MATRIX_RAINDROPS // Enables RGB_MATRIX_RAINDROPS
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS // Enables RGB_MATRIX_JELLYBEAN_RAINDROPS
#define ENABLE_RGB_MATRIX_HUE_BREATHING // Enables RGB_MATRIX_HUE_BREATHING
#define ENABLE_RGB_MATRIX_HUE_PENDULUM // Enables RGB_MATRIX_HUE_PENDULUM
#define ENABLE_RGB_MATRIX_HUE_WAVE // Enables RGB_MATRIX_HUE_WAVE
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL // Enables RGB_MATRIX_PIXEL_FRACTAL
#define ENABLE_RGB_MATRIX_PIXEL_FLOW // Enables RGB_MATRIX_PIXEL_FLOW
#define ENABLE_RGB_MATRIX_PIXEL_RAIN // Enables RGB_MATRIX_PIXEL_RAIN
#define ENABLE_RGB_MATRIX_STARLIGHT // Enables RGB_MATRIX_STARLIGHT
#define ENABLE_RGB_MATRIX_STARLIGHT_DUAL_HUE // Enables RGB_MATRIX_STARLIGHT_DUAL_HUE
#define ENABLE_RGB_MATRIX_STARLIGHT_DUAL_SAT // Enables RGB_MATRIX_STARLIGHT_DUAL_SAT
#define ENABLE_RGB_MATRIX_RIVERFLOW
#define RGB_MATRIX_DEFAULT_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set
// #define RGB_MATRIX_DEFAULT_VAL 50 // Sets the default brightness value, if none has been set
#define RGB_MATRIX_DEFAULT_SPD 127
#define RGB_MATRIX_DEFAULT_ON false
#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_SOLID_COLOR
#define WS2812_PWM_DRIVER PWMD2 // default: PWMD2
#define WS2812_PWM_CHANNEL 2 // default: 2
#define WS2812_PWM_PAL_MODE 2 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2
//#define WS2812_PWM_COMPLEMENTARY_OUTPUT // Define for a complementary timer output (TIMx_CHyN); omit for a normal timer output (TIMx_CHy).
#define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU.
#define WS2812_DMA_CHANNEL 2 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU.
#define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM2_UP
#define USB_MAX_POWER_CONSUMPTION 500

125
keyboards/testboard2/info.json Executable file
View File

@@ -0,0 +1,125 @@
{
"manufacturer": "Johannes Paehr",
"keyboard_name": "testboard2",
"maintainer": "jpaehr",
"bootloader": "stm32duino",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"cols": ["A10", "A9", "A8", "C9", "C8", "C7", "C6", "B15", "B14", "B13", "B12", "B11", "B10", "B1", "B0", "C15", "C14"],
"rows": ["C4", "A7", "A6", "A5", "A4", "A3"]
},
"processor": "STM32F103",
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
},
"layouts": {
"LAYOUT_ortho_6x17": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0, "label": "ESC"},
{"matrix": [0, 1], "x": 2, "y": 0, "label": "F1"},
{"matrix": [0, 2], "x": 3, "y": 0, "label": "F2"},
{"matrix": [0, 3], "x": 4, "y": 0, "label": "F3"},
{"matrix": [0, 4], "x": 5, "y": 0, "label": "F4"},
{"matrix": [0, 5], "x": 6.5, "y": 0, "label": "F5"},
{"matrix": [0, 6], "x": 7.5, "y": 0, "label": "F6"},
{"matrix": [0, 7], "x": 8.5, "y": 0, "label": "F7"},
{"matrix": [0, 8], "x": 9.5, "y": 0, "label": "F8"},
{"matrix": [0, 9], "x": 11, "y": 0, "label": "F9"},
{"matrix": [0, 10], "x": 12, "y": 0, "label": "F10"},
{"matrix": [0, 11], "x": 13, "y": 0, "label": "F11"},
{"matrix": [0, 12], "x": 14, "y": 0, "label": "F12"},
{"matrix": [0, 14], "x": 15.5, "y": 0, "label": "Druck"},
{"matrix": [0, 15], "x": 16.5, "y": 0, "label": "Rollen"},
{"matrix": [0, 16], "x": 17.5, "y": 0, "label": "Pause"},
{"matrix": [1, 0], "x": 0, "y": 1.5, "label": "^"},
{"matrix": [1, 1], "x": 1, "y": 1.5, "label": "1"},
{"matrix": [1, 2], "x": 2, "y": 1.5, "label": "2"},
{"matrix": [1, 3], "x": 3, "y": 1.5, "label": "3"},
{"matrix": [1, 4], "x": 4, "y": 1.5, "label": "4"},
{"matrix": [1, 5], "x": 5, "y": 1.5, "label": "5"},
{"matrix": [1, 6], "x": 6, "y": 1.5, "label": "6"},
{"matrix": [1, 7], "x": 7, "y": 1.5, "label": "7"},
{"matrix": [1, 8], "x": 9, "y": 1.5, "label": "8"},
{"matrix": [1, 9], "x": 10, "y": 1.5, "label": "9"},
{"matrix": [1, 10], "x": 11, "y": 1.5, "label": "0"},
{"matrix": [1, 11], "x": 12, "y": 1.5, "label": "ß"},
{"matrix": [1, 12], "x": 13, "y": 1.5, "label": "´"},
{"matrix": [1, 13], "x": 14.5, "y": 1.5, "label": "Backspace"},
{"matrix": [1, 14], "x": 15.5, "y": 1.5, "label": "Einfuegen"},
{"matrix": [1, 15], "x": 16.5, "y": 1.5, "label": "Pos1"},
{"matrix": [1, 16], "x": 17.5, "y": 1.5, "label": "Bild hoch"},
{"matrix": [2, 0], "x": 0, "y": 2.5, "label": "Tab"},
{"matrix": [2, 1], "x": 1.5, "y": 2.5, "label": "Q"},
{"matrix": [2, 2], "x": 2.5, "y": 2.5, "label": "W"},
{"matrix": [2, 3], "x": 3.5, "y": 2.5, "label": "E"},
{"matrix": [2, 4], "x": 4.5, "y": 2.5, "label": "R"},
{"matrix": [2, 5], "x": 5.5, "y": 2.5, "label": "T"},
{"matrix": [2, 6], "x": 6.5, "y": 2.5, "label": "Z"},
{"matrix": [2, 7], "x": 7.5, "y": 2.5, "label": "U"},
{"matrix": [2, 8], "x": 8.5, "y": 2.5, "label": "I"},
{"matrix": [2, 9], "x": 9.5, "y": 2.5, "label": "O"},
{"matrix": [2, 10], "x": 10.5, "y": 2.5, "label": "P"},
{"matrix": [2, 11], "x": 11.5, "y": 2.5, "label": "Ü"},
{"matrix": [2, 12], "x": 12.5, "y": 2.5, "label": "+"},
{"matrix": [2, 13], "x": 13.75, "y": 3, "label": "Return"},
{"matrix": [2, 14], "x": 15.5, "y": 2.5, "label": "Entf"},
{"matrix": [2, 15], "x": 16.5, "y": 2.5, "label": "Ende"},
{"matrix": [2, 16], "x": 17.5, "y": 2.5, "label": "Bild runter"},
{"matrix": [3, 0], "x": 0, "y": 3.5, "label": "Capslock"},
{"matrix": [3, 1], "x": 1.5, "y": 3.5, "label": "A"},
{"matrix": [3, 2], "x": 2.5, "y": 3.5, "label": "S"},
{"matrix": [3, 3], "x": 3.5, "y": 3.5, "label": "D"},
{"matrix": [3, 4], "x": 4.5, "y": 3.5, "label": "F"},
{"matrix": [3, 5], "x": 5.5, "y": 3.5, "label": "G"},
{"matrix": [3, 6], "x": 6.5, "y": 3.5, "label": "H"},
{"matrix": [3, 7], "x": 7.5, "y": 3.5, "label": "J"},
{"matrix": [3, 8], "x": 8.5, "y": 3.5, "label": "K"},
{"matrix": [3, 9], "x": 9.5, "y": 3.5, "label": "L"},
{"matrix": [3, 10], "x": 10.5, "y": 3.5, "label": "Ö"},
{"matrix": [3, 11], "x": 11.5, "y": 3.5, "label": "Ä"},
{"matrix": [3, 12], "x": 12.5, "y": 3.5, "label": "#"},
{"matrix": [4, 0], "x": 0, "y": 4.5, "label": "LShift"},
{"matrix": [4, 1], "x": 1.25, "y": 4.5, "label": "<"},
{"matrix": [4, 2], "x": 2.25, "y": 4.5, "label": "Y"},
{"matrix": [4, 3], "x": 3.25, "y": 4.5, "label": "X"},
{"matrix": [4, 4], "x": 4.25, "y": 4.5, "label": "C"},
{"matrix": [4, 5], "x": 5.25, "y": 4.5, "label": "V"},
{"matrix": [4, 6], "x": 6.25, "y": 4.5, "label": "B"},
{"matrix": [4, 7], "x": 8.25, "y": 4.5, "label": "N"},
{"matrix": [4, 8], "x": 9.25, "y": 4.5, "label": "M"},
{"matrix": [4, 9], "x": 10.25, "y": 4.5, "label": ";"},
{"matrix": [4, 10], "x": 11.25, "y": 4.5, "label": ":"},
{"matrix": [4, 11], "x": 12.25, "y": 4.5, "label": "-"},
{"matrix": [4, 12], "x": 12.885, "y": 4.5, "label": "RShift"},
{"matrix": [4, 15], "x": 16.5, "y": 4.5, "label": "Hoch"},
{"matrix": [5, 0], "x": 0, "y": 5.5, "label": "Strg"},
{"matrix": [5, 1], "x": 1.25, "y": 5.5, "label": "LWin"},
{"matrix": [5, 2], "x": 2.5, "y": 5.5, "label": "LAlt"},
{"matrix": [5, 6], "x": 5.75, "y": 5.5, "label": "Space"},
{"matrix": [5, 10], "x": 9.625, "y": 5.5, "label": "AltGr"},
{"matrix": [5, 11], "x": 10.875, "y": 5.5, "label": "FN"},
{"matrix": [5, 12], "x": 12.025, "y": 5.5, "label": "Kontext"},
{"matrix": [5, 13], "x": 13.275, "y": 5.5, "label": "RStrg"},
{"matrix": [5, 14], "x": 15.5, "y": 5.5, "label": "Links"},
{"matrix": [5, 15], "x": 16.5, "y": 5.5, "label": "Runter"},
{"matrix": [5, 16], "x": 17.5, "y": 5.5, "label": "Rechts"}
]
}
}
}

View File

@@ -0,0 +1,112 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┬───┐
* │ 7 │ 8 │ 9 │ / │
* ├───┼───┼───┼───┤
* │ 4 │ 5 │ 6 │ * │
* ├───┼───┼───┼───┤
* │ 1 │ 2 │ 3 │ - │
* ├───┼───┼───┼───┤
* │ 0 │ . │Ent│ + │
* └───┴───┴───┴───┘
*/
[0] = LAYOUT_ortho_6x17(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, //KC_MEDIA_PREV_TRACK, //KC_MEDIA_NEXT_TRACK,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BACKSPACE, KC_INS, KC_HOME, KC_PGUP,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_ENT, KC_DEL, KC_END, KC_PGDN,
MO(2), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS,
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
KC_LCTL, KC_LEFT_GUI, KC_LEFT_ALT, KC_SPACE, KC_RIGHT_ALT, MO(1), KC_APP, KC_RIGHT_CTRL, KC_LEFT, KC_DOWN, KC_RIGHT
),
[1] = LAYOUT_ortho_6x17(
QK_BOOT, RGB_MODE_PLAIN, RGB_MODE_REVERSE, RGB_MODE_FORWARD, RGB_TOG, RGB_VAD, RGB_VAI, RGB_SPD, RGB_SPI, KC_F9, KC_AUDIO_VOL_DOWN, KC_AUDIO_MUTE, KC_AUDIO_VOL_UP, KC_PRINT_SCREEN, KC_SCROLL_LOCK, KC_PAUSE,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BACKSPACE, KC_INS, KC_HOME, KC_PGUP,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Z, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_RETN, KC_DEL, KC_END, KC_PGDN,
KC_CAPS_LOCK, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS,
KC_LSFT, KC_NUBS, KC_Y, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, RGB_SAI,
KC_LCTL, KC_LEFT_GUI, KC_LEFT_ALT, KC_SPACE, KC_RIGHT_ALT, MO(1), KC_APP, KC_RIGHT_CTRL, RGB_HUD, RGB_SAD, RGB_HUI
),
[2] = LAYOUT_ortho_6x17(
QK_BOOT, KC_F1, RGB_MODE_REVERSE, RGB_MODE_FORWARD, RGB_TOG, RGB_VAD, RGB_VAI, RGB_SPD, RGB_SPI, KC_F9, KC_AUDIO_VOL_DOWN, KC_AUDIO_MUTE, KC_AUDIO_VOL_UP, KC_7, KC_8, KC_9,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, RALT(KC_7), RALT(KC_8), RALT(KC_9), RALT(KC_0), KC_MINS, KC_EQL, KC_BACKSPACE, KC_4, KC_5, KC_6,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_HOME, LCTL(KC_LEFT), KC_UP, LCTL(KC_RIGHT), KC_END, KC_LBRC, KC_RBRC, KC_0, KC_1, KC_2, KC_3,
KC_CAPS_LOCK, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_LEFT, KC_DOWN, KC_RIGHT, KC_SCLN, KC_QUOT, KC_NUHS,
KC_LSFT, KC_NUBS, KC_Y, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_0,
KC_LCTL, KC_LEFT_GUI, KC_LEFT_ALT, KC_SPACE, KC_RIGHT_ALT, MO(1), KC_APP, KC_RIGHT_CTRL, KC_0, KC_0, KC_0
)
};
led_config_t g_led_config = { {
// Key Matrix to LED Index
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15},
{16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32},
{33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49},
{50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62},
{63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76},
{77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87}
}, {
// LED Index to Physical Position
// { 13, 13 }, { 40, 13 }, { 53, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 }, { 188, 13 },
// { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 },
// { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 },
// { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 },
// { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 },
// { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }, { 188, 16 }
// }
{11, 9}, {34, 9}, {45, 9}, {57, 9}, {68, 9}, {85, 9}, {97, 9}, {108, 9}, {120, 9}, {137, 9}, {148, 9}, {160, 9}, {171, 9}, {185, 9}, {197, 9}, {208, 9},
{11, 19}, {22, 19}, {34, 19}, {45, 19}, {57, 19}, {68, 19}, {80, 19}, {91, 19}, {103, 19}, {114, 19}, {125, 19}, {137, 19}, {148, 19}, {165, 19}, {185, 19}, {197, 19}, {208, 19},
{17, 29}, {28, 29}, {40, 29}, {51, 29}, {62, 29}, {74, 29}, {85, 29}, {97, 29}, {108, 29}, {120, 29}, {131, 29}, {143, 29}, {154, 29}, {168, 33}, {185, 29}, {197, 29}, {208, 29},
{20, 38}, {31, 38}, {42, 38}, {54, 38}, {65, 38}, {77, 38}, {88, 38}, {100, 38}, {111, 38}, {123, 38}, {134, 38}, {145, 38}, {157, 38},
{14, 48}, {25, 48}, {37, 48}, {48, 48}, {60, 48}, {71, 48}, {82, 48}, {94, 48}, {105, 48}, {117, 48}, {128, 48}, {140, 48}, {163, 48}, {197, 48},
{14, 58}, {28, 58}, {42, 58}, {85, 58}, {125, 58}, {140, 58}, {154, 58}, {168, 58}, {185, 58}, {197, 58}, {208, 58}
}, {
// LED Index to Flag
LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT,
LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT,
LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT,
LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT,
LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT,
LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT, LED_FLAG_KEYLIGHT
} };
// bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
// if (host_keyboard_led_state().caps_lock) {
// for (uint8_t i = led_min; i < led_max; i++) {
// if (g_led_config.flags[i] & LED_FLAG_KEYLIGHT) {
// rgb_matrix_set_color(i, RGB_BLUE);
// }
// else{
// rgb_matrix_set_color(0, RGB_RED);
// }
// }
// }
// // else{
// // rgb_matrix_set_color(0, RGB_GREEN);
// // }
// return false;
// }
void keyboard_post_init_user(void) {
// Customise these values to desired behaviour
debug_enable=true;
debug_matrix=true;
// rgb_matrix_toggle();
// // rgb_matrix_toggle();
// rgb_matrix_disable();
// wait_ms(1000);
// rgb_matrix_enable();
// wait_ms(1000);
// rgb_matrix_disable();
// wait_ms(1000);
// rgb_matrix_enable();
// //debug_keyboard=true;#define WS2812_DI_PIN C10
//debug_mouse=true;
}

27
keyboards/testboard2/readme.md Executable file
View File

@@ -0,0 +1,27 @@
# testboard2
![testboard2](imgur.com image replace me!)
*A short description of the keyboard/project*
* Keyboard Maintainer: [Johannes Paehr](https://github.com/jpaehr)
* 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 testboard2:default
Flashing example for this keyboard:
make testboard2: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

12
keyboards/testboard2/rules.mk Executable file
View File

@@ -0,0 +1,12 @@
# This file intentionally left blank
# BOOTLOADER = stm32-dfu
BOOTLOADER = stm32duino
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = ws2812
# WS2812_DRIVER_REQUIRED = yes
# WS2812_DRIVER = pwm
# VIA_ENABLE = yes
CONSOLE_ENABLE = yes

View File

@@ -107,7 +107,7 @@
* PC13 - Push Pull output (LED).
*/
#define VAL_GPIOCCRL 0x88888888 /* PC7...PC0 */
#define VAL_GPIOCCRH 0x88388888 /* PC15...PC8 */
#define VAL_GPIOCCRH 0x88388788 /* PC15...PC8 */
#define VAL_GPIOCODR 0xFFFFFFFF
/*

View File

@@ -78,6 +78,7 @@ void sendByte(uint8_t byte) {
void ws2812_init(void) {
palSetLineMode(WS2812_DI_PIN, WS2812_OUTPUT_MODE);
gpio_write_pin_low(WS2812_DI_PIN);
}
// Setleds for standard RGB

View File

@@ -57,11 +57,11 @@ usb_endpoint_in_t usb_endpoints_in[USB_ENDPOINT_IN_COUNT] = {
#endif
#if defined(JOYSTICK_ENABLE) && !defined(JOYSTICK_SHARED_EP)
[USB_ENDPOINT_IN_JOYSTICK] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, JOYSTICK_EPSIZE, JOYSTICK_IN_EPNUM, JOYSTICK_IN_CAPACITY, QMK_USB_REPORT_STORAGE_DEFAULT(sizeof(report_joystick_t))),
[USB_ENDPOINT_IN_JOYSTICK] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, JOYSTICK_EPSIZE, JOYSTICK_IN_EPNUM, JOYSTICK_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(sizeof(report_joystick_t))),
#endif
#if defined(DIGITIZER_ENABLE) && !defined(DIGITIZER_SHARED_EP)
[USB_ENDPOINT_IN_JOYSTICK] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, DIGITIZER_EPSIZE, DIGITIZER_IN_EPNUM, DIGITIZER_IN_CAPACITY, QMK_USB_REPORT_STORAGE_DEFAULT(sizeof(report_digitizer_t))),
[USB_ENDPOINT_IN_DIGITIZER] = QMK_USB_ENDPOINT_IN(USB_EP_MODE_TYPE_INTR, DIGITIZER_EPSIZE, DIGITIZER_IN_EPNUM, DIGITIZER_IN_CAPACITY, NULL, QMK_USB_REPORT_STORAGE_DEFAULT(sizeof(report_digitizer_t))),
#endif
#if defined(CONSOLE_ENABLE)

View File

@@ -990,7 +990,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = {
.Attributes = (EP_TYPE_INTERRUPT | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA),
.EndpointSize = JOYSTICK_EPSIZE,
.PollingIntervalMS = USB_POLLING_INTERVAL_MS
}
},
#endif
#if defined(DIGITIZER_ENABLE) && !defined(DIGITIZER_SHARED_EP)