-
-
Notifications
You must be signed in to change notification settings - Fork 44.2k
Add keyboard Orbiter #26311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kjeller
wants to merge
36
commits into
qmk:master
Choose a base branch
from
kjeller:orbiter/rev1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add keyboard Orbiter #26311
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
890a78f
Initial commit orbiter
kjeller 164c0f8
Start adding split configurations
kjeller eb2f1c6
Not really working but it compiles
kjeller 5ebe24e
WORKING CONFIG
kjeller a0ed816
Add via support
kjeller 4f98f2c
added oled driver and i2c configuration
xannik 0813585
Merge pull request #1 from kjeller/oled_display
kjeller 906258d
update to correct driver block macros
kjeller 1eb7cb4
Merge remote-tracking branch 'upstream/master' into orbiter_wired
kjeller 96f6b50
fix faulty configuration for i2c
kjeller b7e9fd8
remove via support
kjeller e9f5c54
enable console by default
kjeller 00be5fd
rework layout slightly
kjeller 80859a3
fix default keymap
kjeller 4862933
cleanup
kjeller a88e643
fix comment
kjeller 1d2defe
update readme
kjeller b667266
add copyright headers to pass lint check
kjeller cf262ba
apply clang-formatter
kjeller 28f989e
refactor folder structure slightly
kjeller bf0677e
quickfix name
kjeller 6d06209
bump readme
kjeller fa97ad8
rework for data driven conf
kjeller 4e5f33b
apply formatter json and update naming
kjeller cf8ad3a
forgot one
kjeller 38eb391
slight adjustment
kjeller 18ef1a3
use smaller copyright
kjeller cc76a4e
minor change to name
kjeller 2205708
Apply suggestions from code review
kjeller e5cd709
remove .mk file and rename oled.c
kjeller 3d96c4f
apply formatter
kjeller f0acab0
git-format text
kjeller 776475a
Use DMA offloading
kjeller b9dc6bb
add dma config
kjeller a3c79ea
remove lto
kjeller ab3c0cf
Update keyboards/supercrisp/orbiter/readme.md
kjeller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 2026 Karl Stralman (@kjeller) | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| #pragma once | ||
|
|
||
| #define SERIAL_USART_FULL_DUPLEX | ||
| #define SERIAL_USART_TX_PIN B10 | ||
| #define SERIAL_USART_RX_PIN B11 | ||
| #define SERIAL_USART_PIN_SWAP | ||
| #define SERIAL_USART_TX_PAL_MODE 4 | ||
| #define SERIAL_USART_RX_PAL_MODE 4 | ||
| #define SERIAL_USART_DRIVER SD3 | ||
|
|
||
| #define OLED_DISPLAY_128X64 | ||
| #define OLED_BRIGHTNESS 128 | ||
|
|
||
| #define I2C_DRIVER I2CD2 | ||
| #define I2C1_SCL_PIN B13 | ||
| #define I2C1_SCL_PAL_MODE 5 | ||
| #define I2C1_SDA_PIN B14 | ||
| #define I2C1_SDA_PAL_MODE 5 |
This file contains hidden or 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 2026 Karl Stralman (@kjeller) | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| #pragma once | ||
|
|
||
| #define HAL_USE_SERIAL TRUE | ||
| #define HAL_USE_I2C TRUE | ||
|
|
||
| #include_next <halconf.h> |
This file contains hidden or 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,92 @@ | ||
| { | ||
| "manufacturer": "kjeller", | ||
| "keyboard_name": "Orbiter", | ||
| "maintainer": "Karl Stralman", | ||
| "bootloader": "stm32-dfu", | ||
| "diode_direction": "COL2ROW", | ||
| "features": { | ||
| "bootmagic": true, | ||
| "oled": true | ||
| }, | ||
| "matrix_pins": { | ||
| "cols": ["A5", "A6", "A7", "A8", "A9", "A10"], | ||
| "rows": ["A0", "A1", "A2", "A3", "A4"] | ||
| }, | ||
| "processor": "STM32F072", | ||
| "split": { | ||
| "enabled": true, | ||
| "serial": { | ||
| "driver": "usart" | ||
| }, | ||
| "transport": { | ||
| "sync": { | ||
| "indicators": true, | ||
| "layer_state": true | ||
| } | ||
| } | ||
| }, | ||
| "url": "https://github.com/kjeller/orbiter_keyboard", | ||
| "usb": { | ||
| "device_version": "1.0.0", | ||
| "pid": "0xBABA", | ||
| "vid": "0xFEED" | ||
| }, | ||
| "layouts": { | ||
| "LAYOUT": { | ||
| "layout": [ | ||
| {"label": "ESC", "matrix": [0, 0], "x": 0, "y": 0.5}, | ||
| {"label": "!", "matrix": [0, 1], "x": 1, "y": 0.25}, | ||
| {"label": "@", "matrix": [0, 2], "x": 2, "y": 0}, | ||
| {"label": "#", "matrix": [0, 3], "x": 3, "y": 0.25}, | ||
| {"label": "$", "matrix": [0, 4], "x": 4, "y": 0.5}, | ||
| {"label": "%", "matrix": [0, 5], "x": 5, "y": 0.75}, | ||
| {"label": "^", "matrix": [5, 5], "x": 9, "y": 0.75}, | ||
| {"label": "&", "matrix": [5, 4], "x": 10, "y": 0.5}, | ||
| {"label": "*", "matrix": [5, 3], "x": 11, "y": 0.25}, | ||
| {"label": "(", "matrix": [5, 2], "x": 12, "y": 0}, | ||
| {"label": ")", "matrix": [5, 1], "x": 13, "y": 0.25}, | ||
| {"label": "-", "matrix": [5, 0], "x": 14, "y": 0.5}, | ||
| {"label": "TAB", "matrix": [1, 0], "x": 0, "y": 1.5}, | ||
| {"label": "Q", "matrix": [1, 1], "x": 1, "y": 1.25}, | ||
| {"label": "W", "matrix": [1, 2], "x": 2, "y": 1}, | ||
| {"label": "E", "matrix": [1, 3], "x": 3, "y": 1.25}, | ||
| {"label": "R", "matrix": [1, 4], "x": 4, "y": 1.5}, | ||
| {"label": "T", "matrix": [1, 5], "x": 5, "y": 1.75}, | ||
| {"label": "Y", "matrix": [6, 5], "x": 9, "y": 1.75}, | ||
| {"label": "U", "matrix": [6, 4], "x": 10, "y": 1.5}, | ||
| {"label": "I", "matrix": [6, 3], "x": 11, "y": 1.25}, | ||
| {"label": "O", "matrix": [6, 2], "x": 12, "y": 1}, | ||
| {"label": "P", "matrix": [6, 1], "x": 13, "y": 1.26}, | ||
| {"label": "[", "matrix": [6, 0], "x": 14, "y": 1.5}, | ||
| {"label": "SHIFT", "matrix": [2, 0], "x": 0, "y": 2.5}, | ||
| {"label": "A", "matrix": [2, 1], "x": 1, "y": 2.25}, | ||
| {"label": "S", "matrix": [2, 2], "x": 2, "y": 2}, | ||
| {"label": "D", "matrix": [2, 3], "x": 3, "y": 2.25}, | ||
| {"label": "F", "matrix": [2, 4], "x": 4, "y": 2.5}, | ||
| {"label": "G", "matrix": [2, 5], "x": 5, "y": 2.75}, | ||
| {"label": "M1", "matrix": [4, 0], "x": 6, "y": 3}, | ||
| {"label": "M2", "matrix": [9, 0], "x": 8, "y": 3}, | ||
| {"label": "H", "matrix": [7, 5], "x": 9, "y": 2.75}, | ||
| {"label": "J", "matrix": [7, 4], "x": 10, "y": 2.5}, | ||
| {"label": "K", "matrix": [7, 3], "x": 11, "y": 2.25}, | ||
| {"label": "L", "matrix": [7, 2], "x": 12, "y": 2}, | ||
| {"label": ";", "matrix": [7, 1], "x": 13, "y": 2.26}, | ||
| {"label": "'", "matrix": [7, 0], "x": 14, "y": 2.5}, | ||
| {"label": "CTRL", "matrix": [3, 0], "x": 0, "y": 3.5}, | ||
| {"label": "Z", "matrix": [3, 1], "x": 1, "y": 3.25}, | ||
| {"label": "X", "matrix": [3, 2], "x": 2, "y": 3}, | ||
| {"label": "C", "matrix": [3, 3], "x": 3, "y": 3.25}, | ||
| {"label": "V", "matrix": [3, 4], "x": 4, "y": 3.5}, | ||
| {"label": "B", "matrix": [3, 5], "x": 5, "y": 3.75}, | ||
| {"label": "SPACE", "matrix": [4, 1], "x": 6, "y": 4}, | ||
| {"label": "ENT", "matrix": [9, 1], "x": 8, "y": 4}, | ||
| {"label": "N", "matrix": [8, 5], "x": 9, "y": 3.75}, | ||
| {"label": "M", "matrix": [8, 4], "x": 10, "y": 3.5}, | ||
| {"label": ",", "matrix": [8, 3], "x": 11, "y": 3.25}, | ||
| {"label": ".", "matrix": [8, 2], "x": 12, "y": 3}, | ||
| {"label": "/", "matrix": [8, 1], "x": 13, "y": 3.25}, | ||
| {"label": "SHIFT", "matrix": [8, 0], "x": 14, "y": 3.5} | ||
| ] | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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,27 @@ | ||
| // Copyright 2026 Karl Stralman (@kjeller) | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| #include QMK_KEYBOARD_H | ||
|
|
||
| enum layer_names { | ||
| _ONE, | ||
| _TWO, | ||
| }; | ||
|
|
||
| // clang-format off | ||
| const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| [_ONE] = LAYOUT( | ||
| KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, | ||
| KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, MO(_TWO), MO(_TWO), KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_SPC, KC_ENT, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT | ||
| ), | ||
|
|
||
| [_TWO] = LAYOUT( | ||
| _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| _______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, LALT(KC_LSFT), _______, _______, _______, _______, _______, _______, _______, | ||
| _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| ), | ||
| }; | ||
| // clang-format on |
This file contains hidden or 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,15 @@ | ||
| // Copyright 2026 Karl Stralman (@kjeller) | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| #pragma once | ||
|
|
||
| #include_next <mcuconf.h> | ||
|
|
||
| #undef STM32_SERIAL_USE_USART3 | ||
| #define STM32_SERIAL_USE_USART3 TRUE | ||
|
|
||
| #undef STM32_I2C_USE_I2C2 | ||
| #define STM32_I2C_USE_I2C2 TRUE | ||
|
|
||
| #define STM32_I2C_I2C2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 5) | ||
| #define STM32_I2C_I2C2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 4) |
This file contains hidden or 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,50 @@ | ||
| // Copyright 2026 Karl Stralman (@kjeller) | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
|
|
||
| #include QMK_KEYBOARD_H | ||
|
|
||
| static void render_logo(void) { | ||
| // clang-format off | ||
| static const char PROGMEM qmk_logo[] = { | ||
| 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, | ||
| 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, | ||
| 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0x00 | ||
| }; | ||
| // clang-format on | ||
|
|
||
| oled_write_P(qmk_logo, false); | ||
| } | ||
|
|
||
| #ifdef OLED_ENABLE | ||
| bool oled_task_kb(void) { | ||
| if (!oled_task_user()) { | ||
| return false; | ||
| } | ||
| render_logo(); | ||
| // Host Keyboard Layer Status | ||
| oled_write_P(PSTR("Layer: "), false); | ||
|
|
||
| switch (get_highest_layer(layer_state)) { | ||
| case 0: | ||
| oled_write_P(PSTR("ONE\n"), false); | ||
| break; | ||
| case 1: | ||
| oled_write_P(PSTR("TWO\n"), false); | ||
| break; | ||
| case 2: | ||
| oled_write_P(PSTR("THREE\n"), false); | ||
| break; | ||
| default: | ||
| // Or use the write_ln shortcut over adding '\n' to the end of your string | ||
| oled_write_ln_P(PSTR("Undefined"), false); | ||
| } | ||
|
|
||
| // Host Keyboard LED Status | ||
| led_t led_state = host_keyboard_led_state(); | ||
| oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); | ||
| oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | ||
| oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false); | ||
|
|
||
| return false; | ||
| } | ||
| #endif |
This file contains hidden or 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,27 @@ | ||
| # Orbiter Wired | ||
|
|
||
| A 52-key split keyboard. | ||
|
|
||
|  | ||
|
|
||
| * Keyboard Maintainer: [Karl Stralman](https://github.com/kjeller) | ||
| * Hardware Supported: Orbiter v1.00 | ||
| * Hardware Availability: [Github KiCad project](https://github.com/kjeller/orbiter_keyboard/tree/master/pcb/orbiter-wired) | ||
|
|
||
| Make example for this keyboard (after setting up your build environment): | ||
|
|
||
| make supercrisp/orbiter:default | ||
|
|
||
| Flashing example for this keyboard: | ||
|
|
||
| make supercrisp/orbiter:default:flash | ||
|
|
||
| See the [build environment setup](getting_started_build_tools) and the [make instructions](getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.