aboutsummaryrefslogtreecommitdiff
path: root/keyboards/pseusplit
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/pseusplit')
-rw-r--r--keyboards/pseusplit/config.h19
-rw-r--r--keyboards/pseusplit/halconf.h9
-rw-r--r--keyboards/pseusplit/keyboard.json110
-rw-r--r--keyboards/pseusplit/keymaps/default/keymap.json13
-rw-r--r--keyboards/pseusplit/keymaps/jack/keymap.c26
-rw-r--r--keyboards/pseusplit/mcuconf.h11
-rw-r--r--keyboards/pseusplit/pseusplit.c73
-rw-r--r--keyboards/pseusplit/readme.md22
-rw-r--r--keyboards/pseusplit/rules.mk2
9 files changed, 285 insertions, 0 deletions
diff --git a/keyboards/pseusplit/config.h b/keyboards/pseusplit/config.h
new file mode 100644
index 0000000..16bd734
--- /dev/null
+++ b/keyboards/pseusplit/config.h
@@ -0,0 +1,19 @@
+// Copyright 2025 [email protected]
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#define AZOTEQ_IQS5XX_TPS43
+
+#define IS31FL3733_I2C_ADDRESS_1 IS31FL3733_I2C_ADDRESS_GND_GND
+
+#define SPI_DRIVER SPID1
+#define SPI_SCK_PIN B3
+#define SPI_MOSI_PIN B5
+#define SPI_MISO_PIN B4
+
+#define LCD_DC_PIN D1
+#define LCD_CS_PIN D3
+#define LCD_RST_PIN D2
+#define LCD_SPI_DIVISOR 4
+#define ST7789_HEIGHT 240
+#define ST7789_WIDTH 240
diff --git a/keyboards/pseusplit/halconf.h b/keyboards/pseusplit/halconf.h
new file mode 100644
index 0000000..7470f67
--- /dev/null
+++ b/keyboards/pseusplit/halconf.h
@@ -0,0 +1,9 @@
+// Copyright 2025 [email protected]
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#define HAL_USE_I2C TRUE
+
+#define HAL_USE_SPI TRUE
+
+#include_next <halconf.h>
diff --git a/keyboards/pseusplit/keyboard.json b/keyboards/pseusplit/keyboard.json
new file mode 100644
index 0000000..000c680
--- /dev/null
+++ b/keyboards/pseusplit/keyboard.json
@@ -0,0 +1,110 @@
+{
+ "manufacturer": "pngu.org",
+ "keyboard_name": "pseusplit",
+ "maintainer": "jack",
+ "bootloader": "stm32-dfu",
+ "diode_direction": "COL2ROW",
+ "features": {
+ "bootmagic": true,
+ "extrakey": true,
+ "mousekey": true,
+ "nkro": true,
+ "pointing_device": true,
+ "quantum_painter": false,
+ "rgb_matrix": true
+ },
+ "matrix_pins": {
+ "cols": ["C15", "C14", "C13", "B9", "B8", "A9", "A8", "B15", "B14", "B13"],
+ "rows": ["F1", "F0", "A10", "A15"]
+ },
+ "processor": "STM32G0B1",
+ "rgb_matrix": {
+ "driver": "is31fl3733",
+ "layout": [
+ { "matrix": [0, 0], "x": 0, "y": 0, "flags": 4 },
+ { "matrix": [0, 1], "x": 25, "y": 0, "flags": 4 },
+ { "matrix": [0, 2], "x": 50, "y": 0, "flags": 4 },
+ { "matrix": [0, 3], "x": 75, "y": 0, "flags": 4 },
+ { "matrix": [0, 4], "x": 100, "y": 0, "flags": 4 },
+ { "matrix": [0, 5], "x": 125, "y": 0, "flags": 4 },
+ { "matrix": [0, 6], "x": 150, "y": 0, "flags": 4 },
+ { "matrix": [0, 7], "x": 175, "y": 0, "flags": 4 },
+ { "matrix": [0, 8], "x": 200, "y": 0, "flags": 4 },
+ { "matrix": [0, 9], "x": 224, "y": 0, "flags": 4 },
+ { "matrix": [1, 0], "x": 0, "y": 21, "flags": 4 },
+ { "matrix": [1, 1], "x": 25, "y": 21, "flags": 4 },
+ { "matrix": [1, 2], "x": 50, "y": 21, "flags": 4 },
+ { "matrix": [1, 3], "x": 75, "y": 21, "flags": 4 },
+ { "matrix": [1, 4], "x": 100, "y": 21, "flags": 4 },
+ { "matrix": [1, 5], "x": 125, "y": 21, "flags": 4 },
+ { "matrix": [1, 6], "x": 150, "y": 21, "flags": 4 },
+ { "matrix": [1, 7], "x": 175, "y": 21, "flags": 4 },
+ { "matrix": [1, 8], "x": 200, "y": 21, "flags": 4 },
+ { "matrix": [1, 9], "x": 224, "y": 21, "flags": 4 },
+ { "matrix": [2, 0], "x": 0, "y": 42, "flags": 4 },
+ { "matrix": [2, 1], "x": 25, "y": 42, "flags": 4 },
+ { "matrix": [2, 2], "x": 50, "y": 42, "flags": 4 },
+ { "matrix": [2, 3], "x": 75, "y": 42, "flags": 4 },
+ { "matrix": [2, 4], "x": 100, "y": 42, "flags": 4 },
+ { "matrix": [2, 5], "x": 125, "y": 42, "flags": 4 },
+ { "matrix": [2, 6], "x": 150, "y": 42, "flags": 4 },
+ { "matrix": [2, 7], "x": 175, "y": 42, "flags": 4 },
+ { "matrix": [2, 8], "x": 200, "y": 42, "flags": 4 },
+ { "matrix": [2, 9], "x": 224, "y": 42, "flags": 4 },
+ { "matrix": [3, 2], "x": 50, "y": 64, "flags": 4 },
+ { "matrix": [3, 3], "x": 75, "y": 64, "flags": 4 },
+ { "matrix": [3, 4], "x": 100, "y": 64, "flags": 4 },
+ { "matrix": [3, 5], "x": 125, "y": 64, "flags": 4 },
+ { "matrix": [3, 6], "x": 150, "y": 64, "flags": 4 },
+ { "matrix": [3, 7], "x": 175, "y": 64, "flags": 4 }
+ ]
+ },
+ "url": "https://git.pngu.org/pseusplit",
+ "usb": {
+ "device_version": "1.0.0",
+ "pid": "0x7073",
+ "vid": "0x6A73"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ { "matrix": [0, 0], "x": 0, "y": 0 },
+ { "matrix": [0, 1], "x": 1, "y": 0 },
+ { "matrix": [0, 2], "x": 2, "y": 0 },
+ { "matrix": [0, 3], "x": 3, "y": 0 },
+ { "matrix": [0, 4], "x": 4, "y": 0 },
+ { "matrix": [0, 5], "x": 5, "y": 0 },
+ { "matrix": [0, 6], "x": 6, "y": 0 },
+ { "matrix": [0, 7], "x": 7, "y": 0 },
+ { "matrix": [0, 8], "x": 8, "y": 0 },
+ { "matrix": [0, 9], "x": 9, "y": 0 },
+ { "matrix": [1, 0], "x": 0, "y": 1 },
+ { "matrix": [1, 1], "x": 1, "y": 1 },
+ { "matrix": [1, 2], "x": 2, "y": 1 },
+ { "matrix": [1, 3], "x": 3, "y": 1 },
+ { "matrix": [1, 4], "x": 4, "y": 1 },
+ { "matrix": [1, 5], "x": 5, "y": 1 },
+ { "matrix": [1, 6], "x": 6, "y": 1 },
+ { "matrix": [1, 7], "x": 7, "y": 1 },
+ { "matrix": [1, 8], "x": 8, "y": 1 },
+ { "matrix": [1, 9], "x": 9, "y": 1 },
+ { "matrix": [2, 0], "x": 0, "y": 2 },
+ { "matrix": [2, 1], "x": 1, "y": 2 },
+ { "matrix": [2, 2], "x": 2, "y": 2 },
+ { "matrix": [2, 3], "x": 3, "y": 2 },
+ { "matrix": [2, 4], "x": 4, "y": 2 },
+ { "matrix": [2, 5], "x": 5, "y": 2 },
+ { "matrix": [2, 6], "x": 6, "y": 2 },
+ { "matrix": [2, 7], "x": 7, "y": 2 },
+ { "matrix": [2, 8], "x": 8, "y": 2 },
+ { "matrix": [2, 9], "x": 9, "y": 2 },
+ { "matrix": [3, 2], "x": 2, "y": 3 },
+ { "matrix": [3, 3], "x": 3, "y": 3 },
+ { "matrix": [3, 4], "x": 4, "y": 3 },
+ { "matrix": [3, 5], "x": 5, "y": 3 },
+ { "matrix": [3, 6], "x": 6, "y": 3 },
+ { "matrix": [3, 7], "x": 7, "y": 3 }
+ ]
+ }
+ }
+}
diff --git a/keyboards/pseusplit/keymaps/default/keymap.json b/keyboards/pseusplit/keymaps/default/keymap.json
new file mode 100644
index 0000000..d697741
--- /dev/null
+++ b/keyboards/pseusplit/keymaps/default/keymap.json
@@ -0,0 +1,13 @@
+{
+ "keyboard": "pseusplit",
+ "keymap": "default",
+ "layout": "LAYOUT",
+ "layers": [
+ [
+ "KC_Q", "KC_W", "KC_E", "KC_R", "KC_T", "KC_Y", "KC_U", "KC_I", "KC_O", "KC_P",
+ "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "KC_J", "KC_K", "KC_L", "KC_SCLN",
+ "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_SLSH",
+ "KC_ESC", "KC_BSPC", "KC_TAB", "KC_SPC", "KC_ENT", "KC_CAPS"
+ ]
+ ]
+}
diff --git a/keyboards/pseusplit/keymaps/jack/keymap.c b/keyboards/pseusplit/keymaps/jack/keymap.c
new file mode 100644
index 0000000..1a9c5cb
--- /dev/null
+++ b/keyboards/pseusplit/keymaps/jack/keymap.c
@@ -0,0 +1,26 @@
+// Copyright 2025 [email protected]
+// SPDX-License-Identifier: GPL-3.0-or-later
+#include "jack.h"
+
+// clang-format off
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT_jack(
+ ___BASE1___,
+ ___BASE2___,
+ ___BASE3___,
+ ___BASE4___
+ ),
+ [_LOWER] = LAYOUT_jack(
+ ___LOWER1___,
+ ___LOWER2___,
+ ___LOWER3___,
+ ___LOWER4___
+ ),
+ [_RAISE] = LAYOUT_jack(
+ ___RAISE1___,
+ ___RAISE2___,
+ ___RAISE3___,
+ ___RAISE4___
+ )
+};
+// clang-format on
diff --git a/keyboards/pseusplit/mcuconf.h b/keyboards/pseusplit/mcuconf.h
new file mode 100644
index 0000000..f600857
--- /dev/null
+++ b/keyboards/pseusplit/mcuconf.h
@@ -0,0 +1,11 @@
+// Copyright 2025 [email protected]
+// SPDX-License-Identifier: GPL-2.0-or-later
+#pragma once
+
+#include_next <mcuconf.h>
+
+#undef STM32_I2C_USE_I2C1
+#define STM32_I2C_USE_I2C1 TRUE
+
+#undef STM32_SPI_USE_SPI1
+#define STM32_SPI_USE_SPI1 TRUE
diff --git a/keyboards/pseusplit/pseusplit.c b/keyboards/pseusplit/pseusplit.c
new file mode 100644
index 0000000..1281783
--- /dev/null
+++ b/keyboards/pseusplit/pseusplit.c
@@ -0,0 +1,73 @@
+// Copyright 2025 [email protected]
+// SPDX-License-Identifier: GPL-2.0-or-later
+#include "quantum.h"
+
+#if defined(QUANTUM_PAINTER_ENABLE) && defined(POINTING_DEVICE_ENABLE)
+#error "Cannot enable both Quantum Painter and Pointing Device"
+#endif
+
+#ifdef QUANTUM_PAINTER_ENABLE
+#include "qp.h"
+static painter_device_t display;
+
+void keyboard_post_init_kb(void) {
+ display =
+ qp_st7789_make_spi_device(ST7789_HEIGHT, ST7789_WIDTH, LCD_CS_PIN,
+ LCD_DC_PIN, LCD_RST_PIN, LCD_SPI_DIVISOR, 0);
+ qp_init(display, QP_ROTATION_0);
+ keyboard_post_init_user();
+}
+
+void suspend_power_down_kb(void) {
+ qp_power(display, false);
+ suspend_power_down_user();
+}
+
+void suspend_wakeup_init_kb(void) {
+ qp_power(display, true);
+ suspend_wakeup_init_user();
+}
+#endif // QUANTUM_PAINTER_ENABLE
+
+#ifdef RGB_MATRIX_ENABLE
+const is31fl3733_led_t PROGMEM g_is31fl3733_leds[IS31FL3733_LED_COUNT] = {
+ // clang-format off
+ {0, SW2_CS1, SW3_CS1, SW1_CS1},
+ {0, SW2_CS2, SW3_CS2, SW1_CS2},
+ {0, SW2_CS3, SW3_CS3, SW1_CS3},
+ {0, SW2_CS4, SW3_CS4, SW1_CS4},
+ {0, SW2_CS5, SW3_CS5, SW1_CS5},
+ {0, SW2_CS6, SW3_CS6, SW1_CS6},
+ {0, SW2_CS7, SW3_CS7, SW1_CS7},
+ {0, SW2_CS8, SW3_CS8, SW1_CS8},
+ {0, SW2_CS9, SW3_CS9, SW1_CS9},
+ {0, SW2_CS10, SW3_CS10, SW1_CS10},
+ {0, SW5_CS1, SW6_CS1, SW4_CS1},
+ {0, SW5_CS2, SW6_CS2, SW4_CS2},
+ {0, SW5_CS3, SW6_CS3, SW4_CS3},
+ {0, SW5_CS4, SW6_CS4, SW4_CS4},
+ {0, SW5_CS5, SW6_CS5, SW4_CS5},
+ {0, SW5_CS6, SW6_CS6, SW4_CS6},
+ {0, SW5_CS7, SW6_CS7, SW4_CS7},
+ {0, SW5_CS8, SW6_CS8, SW4_CS8},
+ {0, SW5_CS9, SW6_CS9, SW4_CS9},
+ {0, SW5_CS10, SW6_CS10, SW4_CS10},
+ {0, SW8_CS1, SW9_CS1, SW7_CS1},
+ {0, SW8_CS2, SW9_CS2, SW7_CS2},
+ {0, SW8_CS3, SW9_CS3, SW7_CS3},
+ {0, SW8_CS4, SW9_CS4, SW7_CS4},
+ {0, SW8_CS5, SW9_CS5, SW7_CS5},
+ {0, SW8_CS6, SW9_CS6, SW7_CS6},
+ {0, SW8_CS7, SW9_CS7, SW7_CS7},
+ {0, SW8_CS8, SW9_CS8, SW7_CS8},
+ {0, SW8_CS9, SW9_CS9, SW7_CS9},
+ {0, SW8_CS10, SW9_CS10, SW7_CS10},
+ {0, SW10_CS3, SW12_CS3, SW10_CS3},
+ {0, SW10_CS4, SW12_CS4, SW10_CS4},
+ {0, SW10_CS5, SW12_CS5, SW10_CS5},
+ {0, SW10_CS6, SW12_CS6, SW10_CS6},
+ {0, SW10_CS7, SW12_CS7, SW10_CS7},
+ {0, SW10_CS8, SW12_CS8, SW10_CS8},
+ // clang-format on
+};
+#endif // RGB_MATRIX_ENABLE
diff --git a/keyboards/pseusplit/readme.md b/keyboards/pseusplit/readme.md
new file mode 100644
index 0000000..8d55876
--- /dev/null
+++ b/keyboards/pseusplit/readme.md
@@ -0,0 +1,22 @@
+# Pseusplit
+
+* Keyboard Maintainer: [Jack Sangdahl](https://github.com/waffle87)
+* Hardware Supported: PCBs with integrated STM32G0B1 microcontroller
+* Hardware Availability: [git/pseusplit](https://git.pngu.org/pseusplit)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make pseusplit:default
+
+Flashing example for this keyboard:
+
+ make pseusplit: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
+* **Physical reset button**: Briefly press the button on the back of the PCB
diff --git a/keyboards/pseusplit/rules.mk b/keyboards/pseusplit/rules.mk
new file mode 100644
index 0000000..fa4968a
--- /dev/null
+++ b/keyboards/pseusplit/rules.mk
@@ -0,0 +1,2 @@
+POINTING_DEVICE_DRIVER = azoteq_iqs5xx
+QUANTUM_PAINTER_DRIVERS += st7789_spi