diff --git a/keyboards/supercrisp/orbiter/config.h b/keyboards/supercrisp/orbiter/config.h new file mode 100644 index 000000000000..a511e5e1582e --- /dev/null +++ b/keyboards/supercrisp/orbiter/config.h @@ -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 diff --git a/keyboards/supercrisp/orbiter/halconf.h b/keyboards/supercrisp/orbiter/halconf.h new file mode 100644 index 000000000000..b69eed41884d --- /dev/null +++ b/keyboards/supercrisp/orbiter/halconf.h @@ -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 diff --git a/keyboards/supercrisp/orbiter/keyboard.json b/keyboards/supercrisp/orbiter/keyboard.json new file mode 100644 index 000000000000..06b312cd38e4 --- /dev/null +++ b/keyboards/supercrisp/orbiter/keyboard.json @@ -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} + ] + } + } +} diff --git a/keyboards/supercrisp/orbiter/keymaps/default/keymap.c b/keyboards/supercrisp/orbiter/keymaps/default/keymap.c new file mode 100644 index 000000000000..deba8ef5adc1 --- /dev/null +++ b/keyboards/supercrisp/orbiter/keymaps/default/keymap.c @@ -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 diff --git a/keyboards/supercrisp/orbiter/mcuconf.h b/keyboards/supercrisp/orbiter/mcuconf.h new file mode 100644 index 000000000000..16fe89a4d232 --- /dev/null +++ b/keyboards/supercrisp/orbiter/mcuconf.h @@ -0,0 +1,15 @@ +// Copyright 2026 Karl Stralman (@kjeller) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include_next + +#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) diff --git a/keyboards/supercrisp/orbiter/orbiter.c b/keyboards/supercrisp/orbiter/orbiter.c new file mode 100644 index 000000000000..2d197bb1f156 --- /dev/null +++ b/keyboards/supercrisp/orbiter/orbiter.c @@ -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 diff --git a/keyboards/supercrisp/orbiter/readme.md b/keyboards/supercrisp/orbiter/readme.md new file mode 100644 index 000000000000..776ddf2b7d15 --- /dev/null +++ b/keyboards/supercrisp/orbiter/readme.md @@ -0,0 +1,27 @@ +# Orbiter Wired + +A 52-key split keyboard. + +![Orbiter v1.00](https://i.imgur.com/7KSPaIT.jpeg) + +* 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