This commit is contained in:
MatteoDM 2025-07-16 10:20:32 -07:00 committed by GitHub
commit 4c075d7558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 374 additions and 0 deletions

View File

@ -0,0 +1,39 @@
// Copyright 2022 MatteoDM <matteodalmo@gmail.com>
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
/* Bootloader settings */
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP25
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
/* Serial comunication for split keyboards */
#define SERIAL_USART_FULL_DUPLEX
#define SERIAL_USART_TX_PIN GP0
#define SERIAL_USART_RX_PIN GP1
/* Force the usage of PIO1 peripheral, by default the WS2812 implementation uses the PIO0 peripheral */
#define WS2812_PIO_USE_PIO1
/* LCD Configuration */
#define SPI_DRIVER SPID0
#define SPI_SCK_PIN GP18
#define SPI_MISO_PIN GP20
#define SPI_MOSI_PIN GP19
#define LCD_RST_PIN GP16
#define LCD_CS_PIN GP17
#define LCD_DC_PIN GP21
/* #define BACKLIGHT_ON_STATE 1 */
#define BACKLIGHT_PWM_DRIVER PWMD6
#define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_A
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

View File

@ -0,0 +1,9 @@
// Copyright 2022 MatteoDM <matteodalmo@gmail.com>
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define HAL_USE_SPI TRUE
#define HAL_USE_PWM TRUE
#include_next <halconf.h>

View File

@ -0,0 +1,153 @@
{
"manufacturer": "MatteoDM",
"keyboard_name": "Neodox",
"maintainer": "MatteoDM",
"backlight": {
"driver": "pwm",
"levels": 10,
"pin": "GP28"
},
"bootloader": "rp2040",
"build": {
"debounce_type": "asym_eager_defer_pk"
},
"diode_direction": "COL2ROW",
"features": {
"backlight": true,
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": false,
"quantum_painter": true,
"rgblight": true,
"wpm": true
},
"matrix_pins": {
"cols": ["GP9", "GP10", "GP11", "GP12", "GP13", "GP14", "GP15"],
"rows": ["GP4", "GP5", "GP6", "GP7", "GP8"]
},
"processor": "RP2040",
"rgblight": {
"led_count": 15,
"saturation_steps": 8,
"brightness_steps": 8,
"max_brightness": 150,
"sleep": true,
"split": true,
"animations": {
"alternating": true,
"breathing": true,
"christmas": true,
"knight": true,
"rainbow_mood": true,
"rainbow_swirl": true,
"rgb_test": true,
"snake": true,
"static_gradient": true,
"twinkle": true
},
"default": {
"val": 35
}
},
"split": {
"enabled": true,
"handedness": {
"matrix_grid": ["GP5", "GP15"],
},
"transport": {
"sync": {
"indicators": true,
"layer_state": true,
"matrix_state": true,
"wpm": true
},
"watchdog": true
}
},
"url": "https://gitlab.com/neodox/neodox",
"usb": {
"device_version": "1.0.0",
"pid": "0x5269",
"suspend_wakeup_delay": 200,
"vid": "0x4D69"
},
"ws2812": {
"driver": "vendor",
"pin": "GP23"
},
"layouts": {
"LAYOUT": {
"layout": [
{"label": "_Nav || `", "matrix": [0, 0], "x": 0, "y": 0.375, "w": 1.25},
{"label": "1", "matrix": [0, 1], "x": 1.25, "y": 0.375, "w": 1},
{"label": "2", "matrix": [0, 2], "x": 2.25, "y": 0.125, "w": 1},
{"label": "3", "matrix": [0, 3], "x": 3.25, "y": 0, "w": 1},
{"label": "4", "matrix": [0, 4], "x": 4.25, "y": 0.125, "w": 1},
{"label": "5", "matrix": [0, 5], "x": 5.25, "y": 0.25, "w": 1},
{"label": "6", "matrix": [5, 5], "x": 12.25, "y": 0.25, "w": 1},
{"label": "7", "matrix": [5, 4], "x": 13.25, "y": 0.125, "w": 1},
{"label": "8", "matrix": [5, 3], "x": 14.25, "y": 0, "w": 1},
{"label": "9", "matrix": [5, 2], "x": 15.25, "y": 0.125, "w": 1},
{"label": "0", "matrix": [5, 1], "x": 16.25, "y": 0.375, "w": 1},
{"label": "_Nav || -", "matrix": [5, 0], "x": 17.25, "y": 0.375, "w": 1.25},
{"label": "Tab", "matrix": [1, 0], "x": 0, "y": 1.375, "w": 1.25},
{"label": "Q", "matrix": [1, 1], "x": 1.25, "y": 1.375, "w": 1},
{"label": "W", "matrix": [1, 2], "x": 2.25, "y": 1.125, "w": 1},
{"label": "E", "matrix": [1, 3], "x": 3.25, "y": 1, "w": 1},
{"label": "R", "matrix": [1, 4], "x": 4.25, "y": 1.125, "w": 1},
{"label": "T", "matrix": [1, 5], "x": 5.25, "y": 1.25, "w": 1},
{"label": "Y", "matrix": [6, 5], "x": 12.25, "y": 1.25, "w": 1},
{"label": "U", "matrix": [6, 4], "x": 13.25, "y": 1.125, "w": 1},
{"label": "I", "matrix": [6, 3], "x": 14.25, "y": 1, "w": 1},
{"label": "O", "matrix": [6, 2], "x": 15.25, "y": 1.125, "w": 1},
{"label": "P", "matrix": [6, 1], "x": 16.25, "y": 1.375, "w": 1},
{"label": "=", "matrix": [6, 0], "x": 17.25, "y": 1.375, "w": 1.25},
{"label": "Esc", "matrix": [2, 0], "x": 0, "y": 2.375, "w": 1.25},
{"label": "A", "matrix": [2, 1], "x": 1.25, "y": 2.375, "w": 1},
{"label": "S", "matrix": [2, 2], "x": 2.25, "y": 2.125, "w": 1},
{"label": "D", "matrix": [2, 3], "x": 3.25, "y": 2, "w": 1},
{"label": "F", "matrix": [2, 4], "x": 4.25, "y": 2.125, "w": 1},
{"label": "G", "matrix": [2, 5], "x": 5.25, "y": 2.25, "w": 1},
{"label": "H", "matrix": [7, 5], "x": 12.25, "y": 2.25, "w": 1},
{"label": "J", "matrix": [7, 4], "x": 13.25, "y": 2.125, "w": 1},
{"label": "K", "matrix": [7, 3], "x": 14.25, "y": 2, "w": 1},
{"label": "L", "matrix": [7, 2], "x": 15.25, "y": 2.125, "w": 1},
{"label": ";", "matrix": [7, 1], "x": 16.25, "y": 2.375, "w": 1},
{"label": "'", "matrix": [7, 0], "x": 17.25, "y": 2.375, "w": 1.25},
{"label": "Shift", "matrix": [3, 0], "x": 0, "y": 3.375, "w": 1.25},
{"label": "Z", "matrix": [3, 1], "x": 1.25, "y": 3.375, "w": 1},
{"label": "X", "matrix": [3, 2], "x": 2.25, "y": 3.125, "w": 1},
{"label": "C", "matrix": [3, 3], "x": 3.25, "y": 3, "w": 1},
{"label": "V", "matrix": [3, 4], "x": 4.25, "y": 3.125, "w": 1},
{"label": "B", "matrix": [3, 5], "x": 5.25, "y": 3.25, "w": 1},
{"label": "_Adjust/Page Up", "matrix": [2, 6], "x": 6.75, "y": 3.75, "w": 1},
{"label": "Page Down", "matrix": [3, 6], "x": 7.75, "y": 3.75, "w": 1},
{"label": "Home", "matrix": [8, 6], "x": 9.75, "y": 3.75, "w": 1},
{"label": "_Adjust/End", "matrix": [7, 6], "x": 10.75, "y": 3.75, "w": 1},
{"label": "N", "matrix": [8, 5], "x": 12.25, "y": 3.25, "w": 1},
{"label": "M", "matrix": [8, 4], "x": 13.25, "y": 3.125, "w": 1},
{"label": ",", "matrix": [8, 3], "x": 14.25, "y": 3, "w": 1},
{"label": ",", "matrix": [8, 2], "x": 15.25, "y": 3.125, "w": 1},
{"label": "\\", "matrix": [8, 1], "x": 16.25, "y": 3.375, "w": 1},
{"label": "Shift", "matrix": [8, 0], "x": 17.25, "y": 3.375, "w": 1.25},
{"label": "LGUI", "matrix": [4, 0], "x": 0.25, "y": 4.375, "w": 1},
{"label": "P+", "matrix": [4, 1], "x": 1.25, "y": 4.375, "w": 1},
{"label": "P-", "matrix": [4, 2], "x": 2.25, "y": 4.125, "w": 1},
{"label": "LAlt || P*", "matrix": [4, 3], "x": 3.25, "y": 4, "w": 1},
{"label": "LCtrl || P/", "matrix": [4, 4], "x": 5.5, "y": 5.25, "w": 1.25},
{"label": "Backspace", "matrix": [4, 5], "x": 6.75, "y": 4.75, "w": 1, "h": 1.5},
{"label": "Delete", "matrix": [4, 6], "x": 7.75, "y": 4.75, "w": 1, "h": 1.5},
{"label": "Enter", "matrix": [9, 6], "x": 9.75, "y": 4.75, "w": 1, "h": 1.5},
{"label": "Space", "matrix": [9, 5], "x": 10.75, "y": 4.75, "w": 1, "h": 1.5},
{"label": "RAlt", "matrix": [9, 4], "x": 11.75, "y": 5.25, "w": 1.25},
{"label": "Left", "matrix": [9, 3], "x": 14.25, "y": 4, "w": 1},
{"label": "Down", "matrix": [9, 2], "x": 15.25, "y": 4.125, "w": 1},
{"label": "Up", "matrix": [9, 1], "x": 16.25, "y": 4.375, "w": 1},
{"label": "Right", "matrix": [9, 0], "x": 17.25, "y": 4.375, "w": 1}
]
}
}
}

View File

@ -0,0 +1,88 @@
// Copyright 2022 Matteo Dal Molin <matteodalmo@gmail.com>
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
// Layer names don't all need to be of the same length, obviously, and you can also skip them
// entirely and just use numbers.
enum custom_layers {
_QWERTY,
_SYMB,
_NAV,
_ADJUST,
};
// Shortcut to make keymap more readable
#define KC_ALAS LALT_T(KC_PAST)
#define KC_CTPL LCTL_T(KC_BSLS)
#define KC_NAGR LT(_NAV, KC_GRV)
#define KC_NAMI LT(_NAV, KC_MINS)
#define KC_ADEN LT(_ADJUST, KC_END)
#define KC_ADPU LT(_ADJUST, KC_PGUP)
#define KC_SYEN LT(_SYMB, KC_ENT)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
KC_NAGR ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_NAMI ,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T , KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_EQL ,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
KC_ESC ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G , KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,KC_QUOT ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┬────────┐ ┌────────┬────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B ,KC_ADPU ,KC_PGDN , KC_HOME ,KC_ADEN ,KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_RSFT ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
KC_LGUI ,KC_PPLS ,KC_PMNS ,KC_ALAS , KC_CTPL , KC_BSPC ,KC_DEL , KC_SYEN ,KC_SPC , KC_RALT , KC_LEFT ,KC_DOWN ,KC_UP ,KC_RGHT
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
),
[_SYMB] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______ ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______ ,KC_EXLM ,KC_AT ,KC_LCBR ,KC_RCBR ,KC_PIPE , KC_PSLS ,KC_P7 ,KC_P8 ,KC_P9 ,KC_PMNS ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
_______ ,KC_HASH ,KC_DLR ,KC_LBRC ,KC_RBRC ,KC_GRV , KC_PAST ,KC_P4 ,KC_P5 ,KC_P6 ,KC_PPLS ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┬────────┐ ┌────────┬────────┼────────┼────────┼────────┼────────┼────────┼────────┤
_______ ,KC_PERC ,KC_CIRC ,KC_LPRN ,KC_RPRN ,KC_TILD ,_______ ,_______ , _______ ,_______ ,XXXXXXX ,KC_P1 ,KC_P2 ,KC_P3 ,KC_PENT ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
_______ ,_______ ,_______ ,_______ , _______ , _______ ,_______ , _______ ,_______ , KC_P0 , KC_P0 ,KC_PDOT ,KC_PENT ,XXXXXXX
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
),
[_NAV] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,KC_MS_U ,XXXXXXX ,KC_WH_U ,XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,KC_MS_L ,KC_MS_D ,KC_MS_R ,KC_WH_D ,XXXXXXX , KC_LEFT ,KC_DOWN ,KC_UP ,KC_RIGHT,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┬────────┐ ┌────────┬────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , KC_BTN1 , KC_BTN2 ,_______ , _______ ,_______ , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
),
[_ADJUST] = LAYOUT(
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
XXXXXXX ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
QK_BOOT ,RGB_M_P ,RGB_TOG ,RGB_MOD ,RGB_HUD ,RGB_HUI , RGB_SAD ,RGB_SAI ,RGB_VAD ,RGB_VAI ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┬────────┐ ┌────────┬────────┼────────┼────────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,XXXXXXX , XXXXXXX ,_______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX , XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
)
};

View File

@ -0,0 +1,4 @@
# The default keymap for Neodox
This default keymap is identical to Redox by Mattia Dal Ben <matthewdibi@gmail.com> except for the key matrix, I remove ,
4 keys to be able to add the tft display.

View File

@ -0,0 +1,14 @@
// Copyright 2022 MatteoDM <matteodalmo@gmail.com>
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include_next <mcuconf.h>
/* Used for tft display */
#undef RP_SPI_USE_SPI0
#define RP_SPI_USE_SPI0 TRUE
/* Used for backlight display */
#undef RP_PWM_USE_PWM6
#define RP_PWM_USE_PWM6 TRUE

View File

@ -0,0 +1,65 @@
# Neodox
Inspired by Redox from Mattia Dal Ben
![neodox](https://i.imgur.com/sA6O45Jh.jpg)
**Neodox** project.
Keyboard Maintainer: [MatteoDM](https://github.com/MatteoDM)
Hardware Supported:
- Raspberry Pi Pico microcontroller
- ws2812b
- GC9A01 Round display
- Hardware Availability: [Case files](https://www.thingiverse.com/thing:5625196)
Make example for this keyboard (after setting up your build environment):
make handwired/neodox:default
Flashing example for this keyboard:
make handwired/neodox:default:flash
Enter the bootloader when prompted by doing one of the following:
**Physical boot button**: Unplug your keyboard then press the BOOT button on the microcontroller PCB
**Keycode in layout**: Press the key mapped to `QK_BOOT` if you have a layout that has one.
Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
Keymap example : [neodimio keymap](https://gitlab.com/neodox/neodox/-/tree/new_keymap/keymaps/neodimio?ref_type=heads)
Handwiring specification:
|RP2040 PIN| FUNTIONALITY | COMMENTS |
|----------|----------------|-----------------------------------------------------------------------------|
|GP0 | USART TX | serial comunication between two boards( connected to rx of the other half) |
|GP1 | USART RX | serial comunication between two boards(connected to tx of the other half) |
|GP4 | ROW 1 | |
|GP5 | ROW 2 | |
|GP6 | ROW 3 | |
|GP7 | ROW 4 | |
|GP8 | ROW 5 | |
|GP9 | COL 1 | |
|GP10 | COL 2 | |
|GP11 | COL 3 | |
|GP12 | COL 4 | |
|GP13 | COL 5 | |
|GP14 | COL 6 | |
|GP15 | COL 7 | |
|GP16 | RES LCD | lcd reset |
|GP17 | CS LCD | spi chip select |
|GP18 | SCL LCD | spi clock |
|GP19 | SDA LCD | spi mosi |
|GP21 | DC LCD | data command lcd |
|GP23 | WS2812 | data pin for rgb leds( also called neopixel) |
|GP25 | LED | noting to do ,usually every rp2040 controller board is wired to a led |
|GP28 | BLK LCD | backlight pwm for the lcd |
**Notes:**
GP5, GP15
this intersection is used to define handness( which of the half is, right leave it not connected on the left side, connect a diode as a continuosly pushed switch, this is possible because we have some hollow intersection that we didn t use physically in the matrix 7x5)
diode direction col to row(cathode)

View File

@ -0,0 +1,2 @@
SERIAL_DRIVER = vendor
QUANTUM_PAINTER_DRIVERS = gc9a01_spi